diff --git a/src/Mod/TechDraw/Gui/MDIViewPage.cpp b/src/Mod/TechDraw/Gui/MDIViewPage.cpp index 8692486fac..ff169e44f8 100644 --- a/src/Mod/TechDraw/Gui/MDIViewPage.cpp +++ b/src/Mod/TechDraw/Gui/MDIViewPage.cpp @@ -650,7 +650,7 @@ void MDIViewPage::print(QPrinter* printer) if (!p.isActive() && !printer->outputFileName().isEmpty()) { qApp->setOverrideCursor(Qt::ArrowCursor); QMessageBox::critical(this, tr("Opening file failed"), - tr("Can't open file %1 for writing.").arg(printer->outputFileName())); + tr("Can not open file %1 for writing.").arg(printer->outputFileName())); qApp->restoreOverrideCursor(); return; } @@ -978,10 +978,10 @@ void MDIViewPage::sceneSelectionManager() } if (!found) { m_sceneSelected.push_back(qts); - break; + break; } } - + //remove items from m_sceneSelected that are not in q_sceneSel QList m_new; for (auto m: m_sceneSelected) { @@ -1002,7 +1002,7 @@ void MDIViewPage::sceneSelectionChanged() sceneSelectionManager(); QList dbsceneSel = m_view->scene()->selectedItems(); - + if(isSelectionBlocked) { return; } @@ -1010,7 +1010,7 @@ void MDIViewPage::sceneSelectionChanged() std::vector treeSel = Gui::Selection().getSelectionEx(); // QList sceneSel = m_view->scene()->selectedItems(); QList sceneSel = m_sceneSelected; - + //check if really need to change selection bool sameSel = compareSelections(treeSel,sceneSel); if (sameSel) {