Skip to content

Commit 481eb1d

Browse files
committed
Fixed bug where MXP menu hotspot would be wrong if TextRectangle used
1 parent bacd890 commit 481eb1d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

install/readme.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
MUSHclient version 4.85
22
=======================
33

4-
Sunday, 30th September 2012
4+
Thursday, 11th October 2012
55

66
Author: Nick Gammon
77
Web support: http://www.gammon.com.au/forum/

mushview.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3519,7 +3519,8 @@ ASSERT_VALID(pDoc);
35193519
pDoc->m_iPixelOffset +
35203520
pLine->m_iPreambleOffset;
35213521

3522-
if (point.x < pixel &&
3522+
if ((point.x - pDoc->m_TextRectangle.left) < pixel &&
3523+
(point.x - pDoc->m_TextRectangle.left) >= 0 &&
35233524
pDoc->FindStyle (pLine, col, iCol, pStyle, foundpos))
35243525
{
35253526
iStyle = pStyle->iFlags;

0 commit comments

Comments
 (0)