mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-29 06:19:57 +01:00
Fix DXF export
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5794 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -170,8 +170,6 @@ bool ElementPictureFactory::build(const ElementsLocation &location, QPicture *pi
|
||||
painter.begin(picture);
|
||||
}
|
||||
else {
|
||||
m_pictures_H.insert(location.uuid(), pic);
|
||||
m_primitives_H.insert(location.uuid(), primitives_);
|
||||
painter.begin(&pic);
|
||||
}
|
||||
painter.setRenderHint(QPainter::Antialiasing, true);
|
||||
@@ -185,8 +183,6 @@ bool ElementPictureFactory::build(const ElementsLocation &location, QPicture *pi
|
||||
low_painter.begin(low_picture);
|
||||
}
|
||||
else {
|
||||
m_low_pictures_H.insert(location.uuid(), low_pic);
|
||||
m_primitives_H.insert(location.uuid(), primitives_);
|
||||
low_painter.begin(&low_pic);
|
||||
}
|
||||
low_painter.setRenderHint(QPainter::Antialiasing, true);
|
||||
@@ -225,6 +221,15 @@ bool ElementPictureFactory::build(const ElementsLocation &location, QPicture *pi
|
||||
//End of the drawing
|
||||
painter.end();
|
||||
low_painter.end();
|
||||
|
||||
if (!picture) {
|
||||
m_pictures_H.insert(location.uuid(), pic);
|
||||
m_primitives_H.insert(location.uuid(), primitives_);
|
||||
}
|
||||
if (!low_picture) {
|
||||
m_low_pictures_H.insert(location.uuid(), low_pic);
|
||||
m_primitives_H.insert(location.uuid(), primitives_);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user