r15957 by jghali - #9513: crash when cloning styles in style manager
scribus-commit
scribus-commit at lists.scribus.net
Tue Nov 23 01:00:50 CET 2010
Author: jghali
Date: Tue Nov 23 00:00:50 2010
New Revision: 15957
URL: http://scribus.info/websvn/listing.php?repname=Scribus&sc=1&rev=15957
Log:
#9513: crash when cloning styles in style manager
Modified:
branches/Version135/Scribus/scribus/stylemanager.cpp
Modified: branches/Version135/Scribus/scribus/stylemanager.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=15957&path=/branches/Version135/Scribus/scribus/stylemanager.cpp
==============================================================================
--- branches/Version135/Scribus/scribus/stylemanager.cpp (original)
+++ branches/Version135/Scribus/scribus/stylemanager.cpp Tue Nov 23 00:00:50 2010
@@ -523,7 +523,7 @@
while (*it)
{ // can't create styles here cause createNewStyle() alters the selection
StyleViewItem *item = dynamic_cast<StyleViewItem*>(*it);
- if (item)
+ if (item && !item->isRoot())
names << QPair<QString, QString>(item->rootName(), item->text(NAME_COL));
++it;
}
More information about the scribus-commit
mailing list