From fc4e589d60fd86446f634f34a98a1c494681643c Mon Sep 17 00:00:00 2001 From: ispyisail Date: Sun, 4 Oct 2026 01:28:22 +1300 Subject: [PATCH] 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 --- sources/exportdialog.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sources/exportdialog.cpp b/sources/exportdialog.cpp index 4242d726d..b04ebd8d3 100644 --- a/sources/exportdialog.cpp +++ b/sources/exportdialog.cpp @@ -16,6 +16,7 @@ along with QElectroTech. If not, see . */ #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(item)) { + //A picture hidden by View > Show is not exported + if (qgraphicsitem_cast(item) + && !ShownKinds::isHidden(item)) { any_images = true; break; }