summaryrefslogtreecommitdiff
path: root/svtools/source/misc/embedhlp.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svtools/source/misc/embedhlp.cxx')
-rw-r--r--svtools/source/misc/embedhlp.cxx12
1 files changed, 10 insertions, 2 deletions
diff --git a/svtools/source/misc/embedhlp.cxx b/svtools/source/misc/embedhlp.cxx
index af105c1836bc..4efd3d8de961 100644
--- a/svtools/source/misc/embedhlp.cxx
+++ b/svtools/source/misc/embedhlp.cxx
@@ -664,8 +664,16 @@ void EmbeddedObjectRef::DrawPaintReplacement( const Rectangle &rRect, const OUSt
aPt.Y() = (rRect.GetHeight() - pOut->GetTextHeight()) / 2;
bool bTiny = false;
- if( aPt.X() < 0 ) bTiny = true, aPt.X() = 0;
- if( aPt.Y() < 0 ) bTiny = true, aPt.Y() = 0;
+ if( aPt.X() < 0 )
+ {
+ bTiny = true;
+ aPt.X() = 0;
+ }
+ if( aPt.Y() < 0 )
+ {
+ bTiny = true;
+ aPt.Y() = 0;
+ }
if( bTiny )
{
// decrease for small images