r18065 by fschmid - Fixed Bug #11335: Scribus fails to import PS files created by itself

scribus-commit scribus-commit at lists.scribus.net
Mon Jan 7 09:06:59 UTC 2013


Author: fschmid
Date: Mon Jan  7 09:06:58 2013
New Revision: 18065

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18065
Log:
Fixed Bug #11335: Scribus fails to import PS files created by itself

Modified:
    trunk/Scribus/scribus/scribus.cpp

Modified: trunk/Scribus/scribus/scribus.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18065&path=/trunk/Scribus/scribus/scribus.cpp
==============================================================================
--- trunk/Scribus/scribus/scribus.cpp (original)
+++ trunk/Scribus/scribus/scribus.cpp Mon Jan  7 09:06:58 2013
@@ -1172,6 +1172,8 @@
 
 void ScribusMainWindow::setStatusBarMousePosition(double xp, double yp)
 {
+	if (doc->Pages->count() == 0)
+		return;
 	double xn = xp;
 	double yn = yp;
 	if (doc->guidesPrefs().rulerMode)
@@ -1187,6 +1189,8 @@
 
 void ScribusMainWindow::setStatusBarTextPosition(double base, double xp)
 {
+	if (doc->Pages->count() == 0)
+		return;
 	mainWindowXPosDataLabel->setText(base + xp >= 0? value2String(xp, doc->unitIndex(), true, true): QString("-"));
 	mainWindowYPosDataLabel->setText("-");
 }




More information about the scribus-commit mailing list