diff options
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/svdraw/svdxcgv.cxx | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/svx/source/svdraw/svdxcgv.cxx b/svx/source/svdraw/svdxcgv.cxx index 1cf15c720a31..7d52431cd2b7 100644 --- a/svx/source/svdraw/svdxcgv.cxx +++ b/svx/source/svdraw/svdxcgv.cxx @@ -490,11 +490,20 @@ BitmapEx SdrExchangeView::GetMarkedObjBitmapEx(bool bNoVDevIfOneBmpMarked) const if(!aRange.isEmpty()) { + o3tl::Length eRangeUnit = o3tl::Length::mm100; + + if (GetModel()->IsWriter()) + { + eRangeUnit = o3tl::Length::twip; + } + // if we have geometry and it has a range, convert to BitmapEx using // common tooling aBmp = convertPrimitive2DSequenceToBitmapEx( xPrimitives, - aRange); + aRange, + /*nMaximumQuadraticPixels=*/ 500000, + eRangeUnit); } } } |