Kaydet (Commit) 9eb26a9a authored tarafından Miklos Vajna's avatar Miklos Vajna

svx tiled rendering: grow hittest size when map mode is in mm100

Change-Id: I908b7a5687e49f8cc9ec7e6ca333fe7cab84fcfd
üst e7cf3c04
......@@ -76,9 +76,13 @@ namespace sdr
Size aSizeLogic(pManager->getOutputDevice().PixelToLogic(
Size(DEFAULT_VALUE_FOR_HITTEST_PIXEL, DEFAULT_VALUE_FOR_HITTEST_PIXEL)));
// When tiled rendering, we always work in twips, use the non-pixel default.
// When tiled rendering, we always work in logic units, use the non-pixel default.
if (pManager->getModel()->isTiledRendering())
{
aSizeLogic = Size(DEFAULT_VALUE_FOR_HITTEST_TWIP, DEFAULT_VALUE_FOR_HITTEST_TWIP);
if (pManager->getOutputDevice().GetMapMode().GetMapUnit() == MAP_100TH_MM)
aSizeLogic = OutputDevice::LogicToLogic(aSizeLogic, MAP_TWIP, MAP_100TH_MM);
}
fLogicTolerance = aSizeLogic.Width();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment