incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r1179654 - /incubator/ooo/trunk/main/svx/source/sdr/properties/attributeproperties.cxx
Date Thu, 06 Oct 2011 14:55:24 GMT
Author: jsc
Date: Thu Oct  6 14:55:24 2011
New Revision: 1179654

URL: http://svn.apache.org/viewvc?rev=1179654&view=rev
Log:
118414: applied patch, added forcing that SfxItemSet inside AttributeProperties::SetModel,
thanks to ALG

Modified:
    incubator/ooo/trunk/main/svx/source/sdr/properties/attributeproperties.cxx

Modified: incubator/ooo/trunk/main/svx/source/sdr/properties/attributeproperties.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/svx/source/sdr/properties/attributeproperties.cxx?rev=1179654&r1=1179653&r2=1179654&view=diff
==============================================================================
--- incubator/ooo/trunk/main/svx/source/sdr/properties/attributeproperties.cxx (original)
+++ incubator/ooo/trunk/main/svx/source/sdr/properties/attributeproperties.cxx Thu Oct  6
14:55:24 2011
@@ -482,9 +482,10 @@ namespace sdr
 				}
 
 				// each object gets the default Style if there is none set yet.
-				if(mpItemSet && !GetStyleSheet() && pNewModel && !pNewModel->IsLoading())
+				if(!GetStyleSheet() && pNewModel && !pNewModel->IsLoading())
 				{
-					SetStyleSheet(pNewModel->GetDefaultStyleSheet(), sal_True);
+				    GetObjectItemSet(); // #118414# force ItemSet to allow style to be set
+                    SetStyleSheet(pNewModel->GetDefaultStyleSheet(), sal_True);
 				}
 			}
 		}



Mime
View raw message