diff options
Diffstat (limited to 'src/WorkspaceNameTool.cc')
-rw-r--r-- | src/WorkspaceNameTool.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/WorkspaceNameTool.cc b/src/WorkspaceNameTool.cc index 99d6854..3f66298 100644 --- a/src/WorkspaceNameTool.cc +++ b/src/WorkspaceNameTool.cc | |||
@@ -90,7 +90,7 @@ unsigned int WorkspaceNameTool::width() const { | |||
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 | const std::string &name = (*it)->name(); | 92 | const std::string &name = (*it)->name(); |
93 | max_size = std::max(m_theme.font().textWidth(name.c_str(), name.size()), | 93 | max_size = std::max(m_theme.font().textWidth(name, name.size()), |
94 | max_size); | 94 | max_size); |
95 | } | 95 | } |
96 | // so align text dont cut the last character | 96 | // so align text dont cut the last character |
@@ -108,7 +108,7 @@ unsigned int WorkspaceNameTool::height() const { | |||
108 | BScreen::Workspaces::const_iterator it; | 108 | BScreen::Workspaces::const_iterator it; |
109 | for (it = workspaces.begin(); it != workspaces.end(); it++) { | 109 | for (it = workspaces.begin(); it != workspaces.end(); it++) { |
110 | const std::string &name = (*it)->name(); | 110 | const std::string &name = (*it)->name(); |
111 | max_size = std::max(m_theme.font().textWidth(name.c_str(), name.size()), | 111 | max_size = std::max(m_theme.font().textWidth(name, name.size()), |
112 | max_size); | 112 | max_size); |
113 | } | 113 | } |
114 | // so align text dont cut the last character | 114 | // so align text dont cut the last character |