diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2012-06-20 19:34:36 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-06-22 16:50:17 +0200 |
commit | bf5d91d495efc24c50fbb6783f0b59e66a783e23 (patch) | |
tree | cce392fe2cff8f86ac0a3782dd115eec835cf048 /svtools | |
parent | a6b68e0d23d137f93d7c1d06fd17624d4e09aa4f (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.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/filter/wmf/winwmf.cxx b/svtools/source/filter/wmf/winwmf.cxx index d9daf2a7df3f..af1512607dc5 100644 --- a/svtools/source/filter/wmf/winwmf.cxx +++ b/svtools/source/filter/wmf/winwmf.cxx @@ -1201,7 +1201,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 |