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:
Andreas Heinisch
2026-03-12 15:03:02 +01:00
parent 22b73695f3
commit 06903a5aeb
+3 -1
View File
@@ -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;