[Uml-devel] branches/work/soc-umbrello/umbrello
Gopala Krishna A
krishna.ggk at gmail.com
Mon Aug 11 16:39:52 UTC 2008
SVN commit 845427 by gopala:
Fixed crash on popup menu creation for ObjectWidget.
M +1 -2 listpopupmenu.cpp
--- branches/work/soc-umbrello/umbrello/listpopupmenu.cpp #845426:845427
@@ -346,11 +346,10 @@
case Uml::wt_Object:
{
- UMLView * pView = static_cast<UMLView *>(parent);
//Used for sequence diagram and collaboration diagram widgets
insertSubMenuColor( object->getUseFillColour() );
// [PORT]
- if( pView->umlScene()->getType() == Uml::dt_Sequence ) {
+ if( object->umlScene() && object->umlScene()->getType() == Uml::dt_Sequence ) {
addSeparator();
Menu_Type tabUp = mt_Up;
insert(mt_Up, Icon_Utils::SmallIcon(Icon_Utils::it_Arrow_Up), i18n("Move Up"));
More information about the umbrello-devel
mailing list