r15958 by jghali - #9513: crash when cloning styles in style manager
scribus-commit
scribus-commit at lists.scribus.net
Tue Nov 23 01:02:01 CET 2010
Author: jghali
Date: Tue Nov 23 00:02:01 2010
New Revision: 15958
URL: http://scribus.info/websvn/listing.php?repname=Scribus&sc=1&rev=15958
Log:
#9513: crash when cloning styles in style manager
Modified:
trunk/Scribus/scribus/ui/stylemanager.cpp
Modified: trunk/Scribus/scribus/ui/stylemanager.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=15958&path=/trunk/Scribus/scribus/ui/stylemanager.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/stylemanager.cpp (original)
+++ trunk/Scribus/scribus/ui/stylemanager.cpp Tue Nov 23 00:02:01 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