summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2013-09-28 17:09:33 +0200
committerNorbert Thiebaud <nthiebaud@gmail.com>2013-09-28 17:09:33 +0200
commit01c64f9dffe04c3d3ff0c81ca740827d658ea3da (patch)
tree5d57b777a9b5d40c788c582fcced4c339875db0a /editeng
parent134741211d5c95a1a0ef07e13eb4846c62adce22 (diff)
save commit: fix various breakage due to GraphicObject... need rebase -i
Change-Id: Ia131c13b8831dc994d5866f968fc3e196ff69972
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/uno/unonrule.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/editeng/source/uno/unonrule.cxx b/editeng/source/uno/unonrule.cxx
index b83eaabed71b..98b59ee4dc53 100644
--- a/editeng/source/uno/unonrule.cxx
+++ b/editeng/source/uno/unonrule.cxx
@@ -225,7 +225,7 @@ Sequence<beans::PropertyValue> SvxUnoNumberingRules::getNumberingRuleByIndex( sa
{
const SvxBrushItem* pBrush = rFmt.GetBrush();
- if(pBrush && pBrush->GetGraphicObject().is())
+ if(pBrush)
{
const rtl::Reference<GraphicObject> xGrafObj = pBrush->GetGraphicObject();
OUString aURL( UNO_NAME_GRAPHOBJ_URLPREFIX);
@@ -463,8 +463,8 @@ void SvxUnoNumberingRules::setNumberingRuleByIndex( const Sequence< beans::Prope
{
if( NULL == aFmt.GetBrush() )
{
- rtl::Reference< GraphicObject > xGrafObj = rtl::Reference< GraphicObject >();
- SvxBrushItem aBrushItem( rtl::Reference< GraphicObject >(), GPOS_AREA, SID_ATTR_BRUSH );
+ rtl::Reference< GraphicObject > xGrafObj = GraphicObject::Create(Graphic());
+ SvxBrushItem aBrushItem( xGrafObj, GPOS_AREA, SID_ATTR_BRUSH );
aFmt.SetGraphicBrush( &aBrushItem );
}
}