r17285 by craig - #10570: Set PDF page number widget disabled when PDF file missing and only set maximum if found
scribus-commit
scribus-commit at lists.scribus.net
Thu Feb 9 21:58:32 UTC 2012
Author: craig
Date: Thu Feb 9 21:58:32 2012
New Revision: 17285
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17285
Log:
#10570: Set PDF page number widget disabled when PDF file missing and only set maximum if found
Modified:
trunk/Scribus/scribus/ui/propertiespalette_image.cpp
Modified: trunk/Scribus/scribus/ui/propertiespalette_image.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17285&path=/trunk/Scribus/scribus/ui/propertiespalette_image.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/propertiespalette_image.cpp (original)
+++ trunk/Scribus/scribus/ui/propertiespalette_image.cpp Thu Feb 9 21:58:32 2012
@@ -423,8 +423,15 @@
if (m_item->asImageFrame())
{
imagePageNumber->blockSignals(true);
- imagePageNumber->setMaximum(m_item->pixm.imgInfo.numberOfPages);
+ if(m_item->PictureIsAvailable)
+ {
+ imagePageNumber->setMaximum(m_item->pixm.imgInfo.numberOfPages);
+ imagePageNumber->setEnabled(true);
+ }
+ else
+ imagePageNumber->setEnabled(false);
imagePageNumber->setValue(m_item->pixm.imgInfo.actualPageNumber);
+
compressionMethod->setCurrentIndex(m_item->OverrideCompressionMethod ? m_item->CompressionMethodIndex + 1 : 0);
compressionQuality->setCurrentIndex(m_item->OverrideCompressionQuality ? m_item->CompressionQualityIndex + 1 : 0);
imagePageNumber->blockSignals(false);
More information about the scribus-commit
mailing list