r14009 by jghali - style manager : fix potential crash when enabling edit mode while no style is selected
scribus-commit
scribus-commit at lists.scribus.net
Mon Sep 21 01:35:28 CEST 2009
Revision: 14009
Author: jghali
Date: 2009-09-20T23:34:12.027381Z
Commit message: style manager : fix potential crash when enabling edit mode while no style is selected
Changeset:
M /trunk/Scribus/scribus/ui/stylemanager.cpp
Diffs:
Index: scribus/ui/stylemanager.cpp
===================================================================
--- scribus/ui/stylemanager.cpp (revision 14008)
+++ scribus/ui/stylemanager.cpp (revision 14009)
@@ -1102,6 +1102,9 @@
loadType(slist[0]);
m_item->toSelection(slist[1]);
slotDocSelectionChanged();
+
+ m_rcStyle = QString::null;
+ m_rcType = QString::null;
}
bool StyleManager::nameIsUnique(const QString &name)
@@ -1177,6 +1180,9 @@
m_item->toSelection(sitem->text(NAME_COL)); // apply selected style to the selection
slotDocSelectionChanged();
+
+ m_rcStyle = QString::null;
+ m_rcType = QString::null;
}
void StyleManager::slotApplyStyle(QTreeWidgetItem *newitem, QTreeWidgetItem *)
More information about the scribus-commit
mailing list