summaryrefslogtreecommitdiff
path: root/src/FbWinFrame.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbWinFrame.cc')
-rw-r--r--src/FbWinFrame.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/FbWinFrame.cc b/src/FbWinFrame.cc
index 9b8b7e7..8d93184 100644
--- a/src/FbWinFrame.cc
+++ b/src/FbWinFrame.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: FbWinFrame.cc,v 1.76 2004/02/28 16:54:04 fluxgen Exp $ 22// $Id: FbWinFrame.cc,v 1.77 2004/03/21 09:00:24 rathnor Exp $
23 23
24#include "FbWinFrame.hh" 24#include "FbWinFrame.hh"
25 25
@@ -301,10 +301,11 @@ void FbWinFrame::removeLabelButton(FbTk::TextButton &btn) {
301 if (erase_it == m_labelbuttons.end()) 301 if (erase_it == m_labelbuttons.end())
302 return; 302 return;
303 303
304 if (&btn == m_current_label)
305 m_current_label = 0;
306
304 m_labelbuttons.erase(erase_it); 307 m_labelbuttons.erase(erase_it);
305 308
306 if (*erase_it == m_current_label)
307 m_current_label = 0;
308} 309}
309 310
310 311