- if( rangeMap.find(defIt->first) == rangeMap.end() )
- rangestring << "-" << defIt->first << defIt->second;
+ if( rangeMap.find(defIt->first) == rangeMap.end() ) {
+ bool linkedpara = false;
+
+ for (vector< pair<string,string> >::iterator linkit = linkedParas.begin(); linkit != linkedParas.end(); ++linkit)
+ if (linkit->first == defIt->first) {
+ linkedpara = true;
+ break;
+ }
+
+ if (!linkedpara)
+ rangestring << "-" << defIt->first << defIt->second;
+ }