From 85376415a430e69c0ba7c1de5a9d6b4bbf076e24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 13 Jun 2006 16:28:31 +0000 Subject: [PATCH] Imported InfoWindow.cpp 1.15 from OpenTracker CVS. This fixes bug #649. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17826 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/tracker/InfoWindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/kits/tracker/InfoWindow.cpp b/src/kits/tracker/InfoWindow.cpp index 26c05c90ae..024edbbf58 100644 --- a/src/kits/tracker/InfoWindow.cpp +++ b/src/kits/tracker/InfoWindow.cpp @@ -1281,7 +1281,7 @@ AttributeView::MouseMoved(BPoint point, uint32, const BMessage *message) && StringWidth(fPathStr.String()) > (Bounds().Width() - (fDivider + kBorderMargin))) { fTrackingState = no_track; BRect rect(fPathRect); - rect.right = rect.left + StringWidth(fPathStr.String()) + 4; + rect.right = rect.left + be_plain_font->StringWidth(fPathStr.String()) + 4; rect.OffsetBy(Window()->Frame().left, Window()->Frame().top); if (rect.left < 0) rect.OffsetBy(rect.left * -1, 0); @@ -1296,7 +1296,7 @@ AttributeView::MouseMoved(BPoint point, uint32, const BMessage *message) && StringWidth(fLinkToStr.String()) > (Bounds().Width() - (fDivider + kBorderMargin))) { fTrackingState = no_track; BRect rect(fLinkRect); - rect.right = rect.left + StringWidth(fLinkToStr.String()) + 4; + rect.right = rect.left + be_plain_font->StringWidth(fLinkToStr.String()) + 4; rect.OffsetBy(Window()->Frame().left, Window()->Frame().top); if (rect.left < 0) rect.OffsetBy(rect.left * -1, 0); @@ -1311,7 +1311,7 @@ AttributeView::MouseMoved(BPoint point, uint32, const BMessage *message) && StringWidth(fDescStr.String()) > (Bounds().Width() - (fDivider + kBorderMargin))) { fTrackingState = no_track; BRect rect(fDescRect); - rect.right = rect.left + StringWidth(fDescStr.String()) + 4; + rect.right = rect.left + be_plain_font->StringWidth(fDescStr.String()) + 4; rect.OffsetBy(Window()->Frame().left, Window()->Frame().top); if (rect.left < 0) rect.OffsetBy(rect.left * -1, 0);