r14731 by fschmid - Fixed Bug #8816: "Zoom level cannot go below 10%", minimum is now 1%

scribus-commit scribus-commit at lists.scribus.net
Mon Feb 15 11:50:33 CET 2010


Revision: 14731
Author: fschmid
Date: 2010-02-15T10:47:14.278268Z
Commit message: Fixed Bug #8816: "Zoom level cannot go below 10%", minimum is now 1%

Changeset: 
M  /branches/Version135/Scribus/scribus/plugins/fileloader/scribus134format/scribus134format.cpp
M  /branches/Version135/Scribus/scribus/plugins/fileloader/scribus13format/scribus13format.cpp
M  /branches/Version135/Scribus/scribus/scribusview.cpp
M  /branches/Version135/Scribus/scribus/tabtools.cpp

Diffs:
Index: scribus/tabtools.cpp
===================================================================
--- scribus/tabtools.cpp	(revision 14730)
+++ scribus/tabtools.cpp	(revision 14731)
@@ -439,7 +439,7 @@
 	subTabZoomLayout->addWidget( zoomHeadLine, 0, 0, 1, 2, Qt::AlignHCenter | Qt::AlignTop );
 	minimumZoom = new QSpinBox( subTabZoom);
 	minimumZoom->setMaximum( 3200 );
-	minimumZoom->setMinimum( 10 );
+	minimumZoom->setMinimum( 1 );
 	minimumZoom->setSuffix( tr( " %" ) );
 	subTabZoomLayout->addWidget( minimumZoom, 1, 1, Qt::AlignLeft );
 	textLabel21b = new QLabel( tr( "Mi&nimum:" ), subTabZoom);
Index: scribus/scribusview.cpp
===================================================================
--- scribus/scribusview.cpp	(revision 14730)
+++ scribus/scribusview.cpp	(revision 14731)
@@ -193,7 +193,7 @@
 // 	setCurrentComboItem(previewQualitySwitcher, tr("Normal"));
 	previewQualitySwitcher->setCurrentIndex(Prefs->toolSettings.lowResType);
 
-	zoomSpinBox = new ScrSpinBox( 10, 3200, this, 6 );
+	zoomSpinBox = new ScrSpinBox( 1, 3200, this, 6 );
 	zoomSpinBox->setTabAdvance(false);
 	zoomSpinBox->setFont(fo);
 	zoomSpinBox->setValue( 100 );
Index: scribus/plugins/fileloader/scribus13format/scribus13format.cpp
===================================================================
--- scribus/plugins/fileloader/scribus13format/scribus13format.cpp	(revision 14730)
+++ scribus/plugins/fileloader/scribus13format/scribus13format.cpp	(revision 14731)
@@ -406,7 +406,7 @@
 		m_Doc->toolSettings.dShade2    = dc.attribute("PENSHADE", "100").toInt();
 		m_Doc->toolSettings.dShadeLine = dc.attribute("LINESHADE", "100").toInt();
 		m_Doc->toolSettings.dShade     = dc.attribute("BRUSHSHADE", "100").toInt();
-		m_Doc->toolSettings.magMin     = dc.attribute("MAGMIN", "10").toInt();
+		m_Doc->toolSettings.magMin     = dc.attribute("MAGMIN", "1").toInt();
 		m_Doc->toolSettings.magMax     = dc.attribute("MAGMAX", "3200").toInt();
 		m_Doc->toolSettings.magStep    = dc.attribute("MAGSTEP", "200").toInt();
 		//CB Reset doc zoom step value to 200% instead of old values.
Index: scribus/plugins/fileloader/scribus134format/scribus134format.cpp
===================================================================
--- scribus/plugins/fileloader/scribus134format/scribus134format.cpp	(revision 14730)
+++ scribus/plugins/fileloader/scribus134format/scribus134format.cpp	(revision 14731)
@@ -417,7 +417,7 @@
 		m_Doc->toolSettings.dShade2 = dc.attribute("PENSHADE", "100").toInt();
 		m_Doc->toolSettings.dShadeLine = dc.attribute("LINESHADE", "100").toInt();
 		m_Doc->toolSettings.dShade = dc.attribute("BRUSHSHADE", "100").toInt();
-		m_Doc->toolSettings.magMin = dc.attribute("MAGMIN", "10").toInt();
+		m_Doc->toolSettings.magMin = dc.attribute("MAGMIN", "1").toInt();
 		m_Doc->toolSettings.magMax = dc.attribute("MAGMAX", "3200").toInt();
 		m_Doc->toolSettings.magStep = dc.attribute("MAGSTEP", "200").toInt();
 		m_Doc->toolSettings.dispX = ScCLocale::toDoubleC( dc.attribute("dispX"), 10.0);




More information about the scribus-commit mailing list