r14973 by jghali - #9019: unGroupObject won't work in scripter

scribus-commit scribus-commit at lists.scribus.net
Thu Apr 15 00:20:39 CEST 2010


Revision: 14973
Author: jghali
Date: 2010-04-14T22:15:52.238647Z
Commit message: #9019: unGroupObject won't work in scripter

Changeset: 
M  /trunk/Scribus/scribus/plugins/scriptplugin/cmdmani.cpp

Diffs:
Index: scribus/plugins/scriptplugin/cmdmani.cpp
===================================================================
--- scribus/plugins/scriptplugin/cmdmani.cpp	(revision 14972)
+++ scribus/plugins/scriptplugin/cmdmani.cpp	(revision 14973)
@@ -414,6 +414,8 @@
 	PageItem *i = GetUniqueItem(QString::fromUtf8(Name));
 	if (i == NULL)
 		return NULL;
+	ScCore->primaryMainWindow()->view->Deselect();
+	ScCore->primaryMainWindow()->view->SelectItemNr(i->ItemNr);
 	ScCore->primaryMainWindow()->UnGroupObj();
 //	Py_INCREF(Py_None);
 //	return Py_None;




More information about the scribus-commit mailing list