mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-04 18:04:14 +02:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user