aboutsummaryrefslogtreecommitdiff
path: root/src/FbWinFrame.cc
diff options
context:
space:
mode:
authormathias <mathias>2005-07-25 23:17:41 (GMT)
committermathias <mathias>2005-07-25 23:17:41 (GMT)
commit7b21abc421380f10fa76823702eb99a8cf13297b (patch)
treee17b9d47070ad5ebbff2161ff0bd37cbfae420b9 /src/FbWinFrame.cc
parent460dffdcc1f2de5463225feedd7d02f6f27958c2 (diff)
downloadfluxbox_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.cc4
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
374void FbWinFrame::moveLabelButtonRight(FbTk::TextButton &btn) { 374void FbWinFrame::moveLabelButtonRight(FbTk::TextButton &btn) {
375 m_tab_container.moveItem(&btn, -1); 375 m_tab_container.moveItem(&btn, +1);
376} 376}
377 377
378void FbWinFrame::moveLabelButtonTo(FbTk::TextButton &btn, int x, int y) { 378void 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
400void FbWinFrame::setLabelButtonFocus(FbTk::TextButton &btn) { 400void FbWinFrame::setLabelButtonFocus(FbTk::TextButton &btn) {