Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

bug #3572330 print preview + save causes crash

  • Loading branch information...
commit 98c747b0f5884fec2dddf7688916eea2438a2d56 1 parent c7bb78b
@Rallaz Rallaz authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  librecad/src/main/qc_mdiwindow.cpp
View
2  librecad/src/main/qc_mdiwindow.cpp
@@ -439,6 +439,7 @@ bool QC_MDIWindow::slotFileSave(bool &cancelled, bool isAutoSave) {
cancelled = false;
if (document!=NULL) {
+ document->setGraphicView(graphicView);
if (isAutoSave) {
// Autosave filename is always supposed to be present.
// Autosave does not change the cursor.
@@ -477,6 +478,7 @@ bool QC_MDIWindow::slotFileSaveAs(bool &cancelled) {
QString fn = dlg.getSaveFile(&t);
if (document!=NULL && !fn.isEmpty()) {
QApplication::setOverrideCursor( QCursor(Qt::WaitCursor) );
+ document->setGraphicView(graphicView);
ret = document->saveAs(fn, t);
QApplication::restoreOverrideCursor();
} else {
Please sign in to comment.
Something went wrong with that request. Please try again.