summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2012-06-20 19:34:36 +0200
committerLuboš Luňák <l.lunak@suse.cz>2012-10-12 18:43:09 +0200
commitdbe3b6afaddeb137632b8f6dda01c68835bb2c72 (patch)
tree0288204165479b3eafe2f180c307eac175002929 /svtools
parentb4a3a18e0df04d0ddd7735fb718593132bf401c4 (diff)
fix off-by-one in WMF/EMF reading
It's rather lame that Rectangle from tools primarily specifies the rectangle as topleft/bottomright, rather than topleft/size, as that easily leads to confusion such as here. Change-Id: Ice86fae90d9159b98e0896b6c875b99c3e1a3686
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/filter/wmf/winwmf.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/filter/wmf/winwmf.cxx b/svtools/source/filter/wmf/winwmf.cxx
index a568e3fb885f..5b3d085b34d9 100644
--- a/svtools/source/filter/wmf/winwmf.cxx
+++ b/svtools/source/filter/wmf/winwmf.cxx
@@ -1229,7 +1229,7 @@ void WMFReader::ReadWMF()
if( bEMFAvailable )
{
pOut->AddFromGDIMetaFile( aMeta );
- pOut->SetrclFrame( Rectangle(0, 0, aMeta.GetPrefSize().Width(), aMeta.GetPrefSize().Height() ));
+ pOut->SetrclFrame( Rectangle( Point(0, 0), aMeta.GetPrefSize()));
// the stream needs to be set to the wmf end position,
// otherwise the GfxLink that is created will be incorrect