Bug report #12303
copy/paste style from one vector layer to another of different geometry type
|Affected QGIS version:||2.8.1||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||end of life|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||20481|
Currently, when one tries to copy the style from one vector layer to another of different geometry type (for example from a polygon layer to a point layer), it replaces the whole style tab by the style tab of the source geometry type. So, you end up with a UI to define polygons on a point layers.
It seem not possible to go back, so the layer basically becomes unusable, and doesn't display anything anymore.
A quick fix (bugfix) could be to restrict pasting style on a layer with a different geometry type.
A better fix (feature?) would be to still allow to copy the style, copying everything which can be kept (classification, labels, form, ...), and discarding the rest. Maybe we could even keep something like the color of the classification ?
A very typical use case is when you have a table of type "geometry", and add it three times to your project (once for polygons, once for lines, and once for points). You have three times the exact same structure, and you want the exact same forms/labels/classification. If there are a lots of attributes, it's a pain to have to do the same work three times.
#3 Updated by Giovanni Manghi over 1 year ago
- Resolution set to end of life
- Status changed from Open to Closed
End of life notice: QGIS 2.18 LTR