Bug report #6062

Copied composer items need unique ids

Added by Tim Sutton over 11 years ago. Updated over 11 years ago.

Status:Closed
Priority:Normal
Assignee:Marco Hugentobler
Category:-
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:15423

Description

Do this:

  • select a map on composer
  • ctrl-c
  • ctrl-v

Add a new map and set try to set it as an overview map. You will see both of the other maps on the page are called map0.

I havent tested, but it may be that other items being copy, pasted to the map are also having their identifiers cloned exactly.

Tim

History

#1 Updated by Marco Hugentobler over 11 years ago

  • Status changed from Open to Closed

Fixed for composer map id in b299e0893c84eccc66116c898f2508eb9adc8b6e including unit test.
For the sting ids, it currently is not enforced to have them unique (though it is recommended). It is also possible that a user writes the same string twice in the item dialog.

Also available in: Atom PDF