summaryrefslogtreecommitdiff
path: root/src/FbTk
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk')
-rw-r--r--src/FbTk/TextButton.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/FbTk/TextButton.cc b/src/FbTk/TextButton.cc
index 79ed1ab..380537e 100644
--- a/src/FbTk/TextButton.cc
+++ b/src/FbTk/TextButton.cc
@@ -67,10 +67,10 @@ bool TextButton::setOrientation(FbTk::Orientation orient) {
67 return false; 67 return false;
68 invalidateBackground(); 68 invalidateBackground();
69 69
70 if ((m_orientation == FbTk::ROT0 || m_orientation == FbTk::ROT180) && 70 if (((m_orientation == FbTk::ROT0 || m_orientation == FbTk::ROT180) &&
71 (orient == FbTk::ROT90 || orient == FbTk::ROT270) || 71 (orient == FbTk::ROT90 || orient == FbTk::ROT270)) ||
72 (m_orientation == FbTk::ROT90 || m_orientation == FbTk::ROT270) && 72 ((m_orientation == FbTk::ROT90 || m_orientation == FbTk::ROT270) &&
73 (orient == FbTk::ROT0 || orient == FbTk::ROT180)) { 73 (orient == FbTk::ROT0 || orient == FbTk::ROT180))) {
74 // flip width and height 74 // flip width and height
75 m_orientation = orient; 75 m_orientation = orient;
76 resize(height(), width()); 76 resize(height(), width());