summaryrefslogtreecommitdiff
path: root/src/FbWinFrame.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbWinFrame.cc')
-rw-r--r--src/FbWinFrame.cc16
1 files changed, 4 insertions, 12 deletions
diff --git a/src/FbWinFrame.cc b/src/FbWinFrame.cc
index 7f4b4c8..de0c962 100644
--- a/src/FbWinFrame.cc
+++ b/src/FbWinFrame.cc
@@ -410,15 +410,11 @@ void FbWinFrame::moveLabelButtonLeftOf(const FbTk::TextButton &btn, const FbTk::
410 &dest); 410 &dest);
411 411
412 // make sure we found them 412 // make sure we found them
413 if (it == m_labelbuttons.end() || new_pos==m_labelbuttons.end()) 413 if (it == m_labelbuttons.end() || new_pos==m_labelbuttons.end()) {
414 {
415 cout<<"button to move not found"<<endl;
416 return; 414 return;
417 } 415 }
418 //moving a button to the left of itself results in no change 416 //moving a button to the left of itself results in no change
419 if( new_pos == it) 417 if( new_pos == it) {
420 {
421 cout<<"source and dest button are the same"<<endl;
422 return; 418 return;
423 } 419 }
424 FbTk::TextButton *item = *it; 420 FbTk::TextButton *item = *it;
@@ -439,15 +435,11 @@ void FbWinFrame::moveLabelButtonRightOf(const FbTk::TextButton &btn, const FbTk:
439 &dest); 435 &dest);
440 436
441 // make sure we found them 437 // make sure we found them
442 if (it == m_labelbuttons.end() || new_pos==m_labelbuttons.end()) 438 if (it == m_labelbuttons.end() || new_pos==m_labelbuttons.end()){
443 {
444 cout<<"button to move not found"<<endl;
445 return; 439 return;
446 } 440 }
447 //moving a button to the right of itself results in no change 441 //moving a button to the right of itself results in no change
448 if( new_pos == it) 442 if( new_pos == it){
449 {
450 cout<<"source and dest button are the same"<<endl;
451 return; 443 return;
452 } 444 }
453 FbTk::TextButton *item = *it; 445 FbTk::TextButton *item = *it;