summaryrefslogtreecommitdiff
path: root/svx/source/sdr/contact/viewcontactofsdrpage.cxx
diff options
context:
space:
mode:
authorAndre Fischer <andre.f.fischer <Andre Fischer<andre.f.fischer@oracle.com>2010-08-05 15:59:10 +0200
committerAndre Fischer <andre.f.fischer <Andre Fischer<andre.f.fischer@oracle.com>2010-08-05 15:59:10 +0200
commitb8d78852acfa632daa32d5827d0ee64fd6102c80 (patch)
treee63fcabd90760bb13c6814c050ed9e76ef81402b /svx/source/sdr/contact/viewcontactofsdrpage.cxx
parent4cda571eda7bd9abe5f95d13a6d0b0cb93ed24b0 (diff)
renaissance1: #i113685# Avoid (indirect) static BitmapEx.
Diffstat (limited to 'svx/source/sdr/contact/viewcontactofsdrpage.cxx')
-rw-r--r--svx/source/sdr/contact/viewcontactofsdrpage.cxx17
1 files changed, 6 insertions, 11 deletions
diff --git a/svx/source/sdr/contact/viewcontactofsdrpage.cxx b/svx/source/sdr/contact/viewcontactofsdrpage.cxx
index 29d11b3dfe26..ad65b647001e 100644
--- a/svx/source/sdr/contact/viewcontactofsdrpage.cxx
+++ b/svx/source/sdr/contact/viewcontactofsdrpage.cxx
@@ -169,24 +169,19 @@ namespace sdr
}
else
{
- static vcl::DeleteOnDeinit< BitmapEx > aPageShadow35x35(
- new BitmapEx(ResId(SIP_SA_PAGESHADOW35X35, *ImpGetResMgr())));
-
- if(aPageShadow35x35.get())
+ static vcl::DeleteOnDeinit<drawinglayer::primitive2d::DiscreteShadow>
+ aDiscreteShadow(new drawinglayer::primitive2d::DiscreteShadow(
+ BitmapEx(ResId(SIP_SA_PAGESHADOW35X35, *ImpGetResMgr()))));
+ if (aDiscreteShadow.get() != NULL)
{
- static drawinglayer::primitive2d::DiscreteShadow aDiscreteShadow(*aPageShadow35x35.get());
-
const drawinglayer::primitive2d::Primitive2DReference xReference(
new drawinglayer::primitive2d::DiscreteShadowPrimitive2D(
aPageMatrix,
- aDiscreteShadow));
+ *aDiscreteShadow.get()));
return drawinglayer::primitive2d::Primitive2DSequence(&xReference, 1);
}
- else
- {
- return drawinglayer::primitive2d::Primitive2DSequence();
- }
+ return drawinglayer::primitive2d::Primitive2DSequence();
}
}