Skip to content

Commit 804a5cf

Browse files
committed
Fixed another bug in new mouseover code
1 parent c87c92e commit 804a5cf

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

mushview.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6746,14 +6746,17 @@ bool CMUSHView::Mouse_Down_MiniWindow (CMUSHclientDoc* pDoc, CPoint point, long
67466746
{
67476747

67486748
CMiniWindow * old_mw = it->second;
6749+
string oldHotSpotID = old_mw->m_sMouseOverHotspot;
6750+
if (old_mw == mw)
6751+
oldHotSpotID = sOldMouseOverHotspotInThisWindow;
67496752

67506753
// cancel previous move-over hotspot
6751-
if (!old_mw->m_sMouseOverHotspot.empty ()) // HotspotId was used
6754+
if (!oldHotSpotID.empty ()) // HotspotId was used
67526755
{
67536756
// lookup that HotspotId
6754-
HotspotMapIterator it = old_mw->m_Hotspots.find (old_mw->m_sMouseOverHotspot);
6757+
HotspotMapIterator it = old_mw->m_Hotspots.find (oldHotSpotID);
67556758

6756-
string sOldMouseOverHotspot = old_mw->m_sMouseOverHotspot;
6759+
string sOldMouseOverHotspot = oldHotSpotID;
67576760
old_mw->m_sMouseOverHotspot.erase (); // no mouse-over right now
67586761

67596762
// call CancelMouseOver for that hotspot, if it exists

0 commit comments

Comments
 (0)