tdf#171236 - Show a tooltip only when the ruler extra represents a tab stop
This helps users distinguish Writer tab stops from the Draw ruler, otherwise drag-and-drop operations on the Draw ruler would not work. Change-Id: Ia6b22038f4802b0f93c9ac98eca45f8ddcdd4e9d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201503 Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de> Tested-by: Jenkins
This commit is contained in:
@@ -37,6 +37,7 @@
|
||||
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
#include <svx/ruler.hxx>
|
||||
|
||||
using namespace ::com::sun::star;
|
||||
using namespace ::com::sun::star::uno;
|
||||
@@ -1469,7 +1470,8 @@ bool Ruler::ImplDoHitTest( const Point& rPos, RulerSelection* pHitTest,
|
||||
|
||||
// tdf#84949 - check if the mouse is moved over the extra field
|
||||
// to show a tooltip for left, center, right, and decimal tab
|
||||
if (maExtraRect.Contains(Point(nX, nY)))
|
||||
// tdf#171236 - only show tooltip for tab stop control
|
||||
if (meExtraType == RulerExtra::Tab && maExtraRect.Contains(Point(nX, nY)))
|
||||
{
|
||||
pHitTest->nPos = nX;
|
||||
pHitTest->eType = RulerType::TabAlign;
|
||||
|
||||
Reference in New Issue
Block a user