File tree Expand file tree Collapse file tree 2 files changed +14
-10
lines changed Expand file tree Collapse file tree 2 files changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ WORD key;
134
134
m_CommandToSendToMap [command] = SendTo;
135
135
136
136
// remember which plugin did it
137
- m_CommandToPluginMap [command].empty ();
137
+ m_CommandToPluginMap [command].erase ();
138
138
139
139
if (m_CurrentPlugin)
140
140
m_CommandToPluginMap [command] = m_CurrentPlugin->m_strID ;
Original file line number Diff line number Diff line change @@ -2540,15 +2540,19 @@ void CSendView::OnAcceleratorCommand (UINT nID)
2540
2540
// which plugin wanted it
2541
2541
pDoc->m_CurrentPlugin = pDoc->GetPlugin (pDoc->m_CommandToPluginMap [nID].c_str ());
2542
2542
2543
- // ok let's do it now
2544
- pDoc->SendTo (pDoc->m_CommandToSendToMap [nID],
2545
- sCommand .c_str (),
2546
- TRUE , // omit from output
2547
- TRUE , // omit from log
2548
- TFormat (" Accelerator: %s" , (LPCTSTR) key),
2549
- " " , // Variable name
2550
- strExtraOutput // if we sent to output, it goes here
2551
- );
2543
+ if (pDoc->m_CurrentPlugin != NULL ||
2544
+ pDoc->m_CommandToPluginMap [nID].empty ())
2545
+ {
2546
+ // ok let's do it now
2547
+ pDoc->SendTo (pDoc->m_CommandToSendToMap [nID],
2548
+ sCommand .c_str (),
2549
+ TRUE , // omit from output
2550
+ TRUE , // omit from log
2551
+ TFormat (" Accelerator: %s" , (LPCTSTR) key),
2552
+ " " , // Variable name
2553
+ strExtraOutput // if we sent to output, it goes here
2554
+ );
2555
+ }
2552
2556
2553
2557
pDoc->m_CurrentPlugin = pSavedPlugin;
2554
2558
You can’t perform that action at this time.
0 commit comments