Kaydet (Commit) 0d6a07f6 authored tarafından Miklos Vajna's avatar Miklos Vajna

sd tiled rendering: increase hit testing tolerance

Change-Id: Ibab0aeb6b9b605d1cc964e7858404b1e0919fc10
üst 9eb26a9a
......@@ -155,6 +155,13 @@ bool FuSelection::MouseButtonDown(const MouseEvent& rMEvt)
sal_uInt16 nDrgLog = sal_uInt16 ( mpWindow->PixelToLogic(Size(DRGPIX,0)).Width() );
sal_uInt16 nHitLog = sal_uInt16 ( mpWindow->PixelToLogic(Size(HITPIX,0)).Width() );
if (mpDoc->isTiledRendering())
{
// When tiled rendering, we always work in logic units, use the non-pixel constants.
nDrgLog = DRGLOG;
nHitLog = HITLOG;
}
// The following code is executed for right clicks as well as for left
// clicks in order to modify the selection for the right button as a
// preparation for the context menu. The functions BegMarkObject() and
......
......@@ -48,7 +48,9 @@ class FuPoor : public SimpleReferenceComponent
{
public:
static const int HITPIX = 2; // Hit-Toleranz in Pixel
static const int HITLOG = 53; // Hit tolerance in mm100
static const int DRGPIX = 2; // Drag MinMove in Pixel
static const int DRGLOG = 53; // Minimal drag move in mm100
TYPEINFO();
......
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