aboutsummaryrefslogtreecommitdiff
path: root/src/WorkspaceNameTool.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/WorkspaceNameTool.cc')
-rw-r--r--src/WorkspaceNameTool.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/WorkspaceNameTool.cc b/src/WorkspaceNameTool.cc
index 84f62e5..5056a8f 100644
--- a/src/WorkspaceNameTool.cc
+++ b/src/WorkspaceNameTool.cc
@@ -88,7 +88,7 @@ unsigned int WorkspaceNameTool::width() const {
88 88
89 const BScreen::Workspaces& workspaces = m_screen.getWorkspacesList(); 89 const BScreen::Workspaces& workspaces = m_screen.getWorkspacesList();
90 BScreen::Workspaces::const_iterator it; 90 BScreen::Workspaces::const_iterator it;
91 for (it = workspaces.begin(); it != workspaces.end(); it++) { 91 for (it = workspaces.begin(); it != workspaces.end(); ++it) {
92 max_size = std::max(m_theme->font().textWidth((*it)->name()), max_size); 92 max_size = std::max(m_theme->font().textWidth((*it)->name()), max_size);
93 } 93 }
94 // so align text dont cut the last character 94 // so align text dont cut the last character
@@ -104,7 +104,7 @@ unsigned int WorkspaceNameTool::height() const {
104 unsigned int max_size = 0; 104 unsigned int max_size = 0;
105 const BScreen::Workspaces& workspaces = m_screen.getWorkspacesList(); 105 const BScreen::Workspaces& workspaces = m_screen.getWorkspacesList();
106 BScreen::Workspaces::const_iterator it; 106 BScreen::Workspaces::const_iterator it;
107 for (it = workspaces.begin(); it != workspaces.end(); it++) { 107 for (it = workspaces.begin(); it != workspaces.end(); ++it) {
108 max_size = std::max(m_theme->font().textWidth((*it)->name()), max_size); 108 max_size = std::max(m_theme->font().textWidth((*it)->name()), max_size);
109 } 109 }
110 // so align text dont cut the last character 110 // so align text dont cut the last character