diff options
author | mathias <mathias> | 2005-07-25 23:17:41 (GMT) |
---|---|---|
committer | mathias <mathias> | 2005-07-25 23:17:41 (GMT) |
commit | 7b21abc421380f10fa76823702eb99a8cf13297b (patch) | |
tree | e17b9d47070ad5ebbff2161ff0bd37cbfae420b9 /src/FbWinFrame.cc | |
parent | 460dffdcc1f2de5463225feedd7d02f6f27958c2 (diff) | |
download | fluxbox_pavel-7b21abc421380f10fa76823702eb99a8cf13297b.zip fluxbox_pavel-7b21abc421380f10fa76823702eb99a8cf13297b.tar.bz2 |
Fix for #1240248, Segfaults for :MoveTabLeft/Right
wrong code in Container.cc
Diffstat (limited to 'src/FbWinFrame.cc')
-rw-r--r-- | src/FbWinFrame.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FbWinFrame.cc b/src/FbWinFrame.cc index 9ac2935..53d1d2c 100644 --- a/src/FbWinFrame.cc +++ b/src/FbWinFrame.cc | |||
@@ -372,7 +372,7 @@ void FbWinFrame::moveLabelButtonLeft(FbTk::TextButton &btn) { | |||
372 | } | 372 | } |
373 | 373 | ||
374 | void FbWinFrame::moveLabelButtonRight(FbTk::TextButton &btn) { | 374 | void FbWinFrame::moveLabelButtonRight(FbTk::TextButton &btn) { |
375 | m_tab_container.moveItem(&btn, -1); | 375 | m_tab_container.moveItem(&btn, +1); |
376 | } | 376 | } |
377 | 377 | ||
378 | void FbWinFrame::moveLabelButtonTo(FbTk::TextButton &btn, int x, int y) { | 378 | void FbWinFrame::moveLabelButtonTo(FbTk::TextButton &btn, int x, int y) { |
@@ -394,7 +394,7 @@ void FbWinFrame::moveLabelButtonRightOf(FbTk::TextButton &btn, const FbTk::TextB | |||
394 | if (pos < 0) | 394 | if (pos < 0) |
395 | return; | 395 | return; |
396 | 396 | ||
397 | m_tab_container.moveItem(&btn, pos-1); | 397 | m_tab_container.moveItem(&btn, pos+1); |
398 | } | 398 | } |
399 | 399 | ||
400 | void FbWinFrame::setLabelButtonFocus(FbTk::TextButton &btn) { | 400 | void FbWinFrame::setLabelButtonFocus(FbTk::TextButton &btn) { |