r14008 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:15 CEST 2009


Revision: 14008
Author: jghali
Date: 2009-09-20T23:33:46.433762Z
Commit message: style manager : fix potential crash when enabling edit mode while no style is selected

Changeset: 
M  /branches/Version135/Scribus/scribus/stylemanager.cpp

Diffs:
Index: scribus/stylemanager.cpp
===================================================================
--- scribus/stylemanager.cpp	(revision 14007)
+++ scribus/stylemanager.cpp	(revision 14008)
@@ -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