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

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


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

Changeset: 
M  /branches/Version135/Scribus/scribus/plugins/scriptplugin/cmdmani.cpp

Diffs:
Index: scribus/plugins/scriptplugin/cmdmani.cpp
===================================================================
--- scribus/plugins/scriptplugin/cmdmani.cpp	(revision 14971)
+++ scribus/plugins/scriptplugin/cmdmani.cpp	(revision 14972)
@@ -272,6 +272,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