r20181 by fschmid - Removed unneeded assert that leads to crash when text scaling goes below 51 %

scribus-commit scribus-commit at lists.scribus.net
Sat Jun 20 10:47:51 UTC 2015


Author: fschmid
Date: Sat Jun 20 10:47:51 2015
New Revision: 20181

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20181
Log:
Removed unneeded assert that leads to crash when text scaling goes below 51 %

Modified:
    trunk/Scribus/scribus/text/storytext.cpp

Modified: trunk/Scribus/scribus/text/storytext.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20181&path=/trunk/Scribus/scribus/text/storytext.cpp
==============================================================================
--- trunk/Scribus/scribus/text/storytext.cpp (original)
+++ trunk/Scribus/scribus/text/storytext.cpp Sat Jun 20 10:47:51 2015
@@ -720,8 +720,8 @@
 
     assert(pos >= 0);
     assert(pos < length());
-
-	assert((this->d->at(pos)->glyph).scaleH > 0.5);
+	// WTF ?! removing this assert as it gives crashes when Scale goes below 51 %
+//	assert((this->d->at(pos)->glyph).scaleH > 0.5);
 	return &(this->d->at(pos)->glyph);
 }
 
@@ -733,7 +733,8 @@
     assert(pos >= 0);
     assert(pos < length());
 
-	assert( (const_cast<StoryText *>(this)->d->at(pos)->glyph).scaleH > 0.5);
+	// WTF ?! removing this assert as it gives crashes when Scale goes below 51 %
+//	assert( (const_cast<StoryText *>(this)->d->at(pos)->glyph).scaleH > 0.5);
 	return &(const_cast<StoryText *>(this)->d->at(pos)->glyph);
 }
 




More information about the scribus-commit mailing list