--- a/src/toolsets/viewtoolset.cpp Sun Sep 06 03:00:28 2015 +0300 +++ b/src/toolsets/viewtoolset.cpp Sun Sep 06 03:10:03 2015 +0300 @@ -260,10 +260,10 @@ if (selectedObjects().size() == 1) defval = selectedObjects()[0]->lineNumber(); - int idx = QInputDialog::getInt (null, "Go to line", "Go to line:", defval, + int idx = QInputDialog::getInt (nullptr, "Go to line", "Go to line:", defval, 1, currentDocument()->getObjectCount(), 1, &ok); - if (not ok or (obj = currentDocument()->getObject (idx - 1)) == null) + if (not ok or (obj = currentDocument()->getObject (idx - 1)) == nullptr) return; currentDocument()->clearSelection();