summaryrefslogtreecommitdiff
path: root/svx/source/table
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/table')
-rw-r--r--svx/source/table/tablehandles.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/svx/source/table/tablehandles.cxx b/svx/source/table/tablehandles.cxx
index 761fb57667c1..2b16ff29d1ed 100644
--- a/svx/source/table/tablehandles.cxx
+++ b/svx/source/table/tablehandles.cxx
@@ -293,10 +293,14 @@ void TableBorderHdl::CreateB2dIAObject()
// text edit is not yet on the overlay)
const bool bAnimate = getAnimate();
+ OutputDevice& rOutDev = rPageWindow.GetPaintWindow().GetOutputDevice();
+ sal_Int32 nScaleFactor = rOutDev.GetDPIScaleFactor();
+ double fWidth = nScaleFactor * 6.0;
+
sdr::overlay::OverlayObject* pOverlayObject =
new sdr::overlay::OverlayRectangle(aRange.getMinimum(), aRange.getMaximum(),
aHilightColor, fTransparence,
- 6.0, 0.0, 0.0, 500, bAnimate);
+ fWidth, 0.0, 0.0, 500, bAnimate);
xManager->add(*pOverlayObject);
maOverlayGroup.append(*pOverlayObject);
}