Test SVG export improved
This commit is contained in:
parent
f6e5f67159
commit
ffaca85f49
|
@ -994,8 +994,6 @@ void VPMainWindow::on_checkBoxSheetStickyEdges_toggled(bool checked)
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
void VPMainWindow::on_pushButtonSheetExport_clicked()
|
void VPMainWindow::on_pushButtonSheetExport_clicked()
|
||||||
{
|
{
|
||||||
m_graphicsView->PrepareForExport();
|
|
||||||
|
|
||||||
// svg export to do some test for the first test
|
// svg export to do some test for the first test
|
||||||
|
|
||||||
QString dir = QDir::homePath();
|
QString dir = QDir::homePath();
|
||||||
|
@ -1008,7 +1006,9 @@ void VPMainWindow::on_pushButtonSheetExport_clicked()
|
||||||
#endif
|
#endif
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if(not fileName.isEmpty())
|
||||||
|
{
|
||||||
|
m_graphicsView->PrepareForExport();
|
||||||
|
|
||||||
const QSizeF s = m_layout->GetFocusedSheet()->GetSheetSize();
|
const QSizeF s = m_layout->GetFocusedSheet()->GetSheetSize();
|
||||||
const QRectF r = QRectF(0, 0, s.width(), s.height());
|
const QRectF r = QRectF(0, 0, s.width(), s.height());
|
||||||
|
@ -1030,6 +1030,7 @@ void VPMainWindow::on_pushButtonSheetExport_clicked()
|
||||||
painter.end();
|
painter.end();
|
||||||
|
|
||||||
m_graphicsView->CleanAfterExport();
|
m_graphicsView->CleanAfterExport();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user