Bug report #19604

[DXF export] Labels are exported even if the entity is not visible

Added by Loïc BARTOLETTI over 6 years ago. Updated over 5 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:DXF export
Affected QGIS version:3.5(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 #:27431

Description

When exporting DXF, labels of entities that are not displayed are still exported (but the entity no). This happens when they are not visible due to a filter made at the layer style level.

An example with three linestring, two labelled with "F%" and one with "G%" only "F%" labels should be exported.

Tested on 2.18 and 3

export.png - autocad result (12.1 KB) Loïc BARTOLETTI, 2018-08-13 09:06 AM

test_export_dxf.gpkg - test data (116 KB) Loïc BARTOLETTI, 2018-08-13 09:07 AM

export_dxf.dxf - dxf exported (17.4 KB) Loïc BARTOLETTI, 2018-08-13 09:07 AM

Associated revisions

Revision c389fad1
Added by Jürgen Fischer over 5 years ago

dxf export: don't label invisible features (fixes #19604)

Revision 87c9e18e
Added by Jürgen Fischer over 5 years ago

dxf export: don't label invisible features (fixes #19604)

(cherry picked from commit c389fad1ad0396cf9914dedc8d2e9a9c303cd8f8)

History

#1 Updated by Regis Haubourg over 6 years ago

  • Subject changed from Labels are exported even if the entity is not visible to [DXF export] Labels are exported even if the entity is not visible

#2 Updated by Jürgen Fischer almost 6 years ago

  • Status changed from Open to Feedback

Please test with QGIS 3.4 - QGIS 2.18 reached it's end of life.

#3 Updated by Loïc BARTOLETTI almost 6 years ago

  • Affected QGIS version changed from 2.18.21 to 3.5(master)
  • Status changed from Feedback to Open

#4 Updated by Nyall Dawson almost 6 years ago

Yes, confirmed here

#5 Updated by Jürgen Fischer over 5 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF