View > Show: no DXF picture warning when pictures are hidden

The DXF export warns that pictures become outlines. Pictures hidden by
View > Show are left out of the export, so they no longer trigger it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ispyisail
2026-10-04 01:28:22 +13:00
parent 5fe9cc76e3
commit fc4e589d60
+4 -1
View File
@@ -16,6 +16,7 @@
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
*/
#include "exportdialog.h"
#include "shownkinds.h"
#include "conductorsegment.h"
#include "createdxf.h"
@@ -497,7 +498,9 @@ void ExportDialog::slot_export()
{
for (QGraphicsItem *item : diagram_line->diagram->items())
{
if (qgraphicsitem_cast<DiagramImageItem *>(item)) {
//A picture hidden by View > Show is not exported
if (qgraphicsitem_cast<DiagramImageItem *>(item)
&& !ShownKinds::isHidden(item)) {
any_images = true;
break;
}