Skip to content

Commit

Permalink
Fixed another bug in new mouseover code
Browse files Browse the repository at this point in the history
  • Loading branch information
nickgammon committed May 30, 2011
1 parent c87c92e commit 804a5cf
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions mushview.cpp
Expand Up @@ -6746,14 +6746,17 @@ bool CMUSHView::Mouse_Down_MiniWindow (CMUSHclientDoc* pDoc, CPoint point, long
{

CMiniWindow * old_mw = it->second;
string oldHotSpotID = old_mw->m_sMouseOverHotspot;
if (old_mw == mw)
oldHotSpotID = sOldMouseOverHotspotInThisWindow;

// cancel previous move-over hotspot
if (!old_mw->m_sMouseOverHotspot.empty ()) // HotspotId was used
if (!oldHotSpotID.empty ()) // HotspotId was used
{
// lookup that HotspotId
HotspotMapIterator it = old_mw->m_Hotspots.find (old_mw->m_sMouseOverHotspot);
HotspotMapIterator it = old_mw->m_Hotspots.find (oldHotSpotID);

string sOldMouseOverHotspot = old_mw->m_sMouseOverHotspot;
string sOldMouseOverHotspot = oldHotSpotID;
old_mw->m_sMouseOverHotspot.erase (); // no mouse-over right now

// call CancelMouseOver for that hotspot, if it exists
Expand Down

0 comments on commit 804a5cf

Please sign in to comment.