summaryrefslogtreecommitdiff
path: root/src/action.cpp
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2009-02-26 07:11:57 +0100
committerDanny Baumann <dannybaumann@web.de>2009-02-26 07:11:57 +0100
commit61762b56e49217b83a29cdd87e0722f9ee99745a (patch)
tree8299487d769928735631f39c22f33d10ddc05609 /src/action.cpp
parent83e8c8f3d49105ff4f76748d7c74ed562f4bb8b9 (diff)
downloadunity-window-decorator-61762b56e49217b83a29cdd87e0722f9ee99745a.tar.gz
unity-window-decorator-61762b56e49217b83a29cdd87e0722f9ee99745a.tar.bz2
Fix formatting of edge strings.
Diffstat (limited to 'src/action.cpp')
-rw-r--r--src/action.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/action.cpp b/src/action.cpp
index 9a06697..2e33491 100644
--- a/src/action.cpp
+++ b/src/action.cpp
@@ -601,13 +601,14 @@ CompAction::buttonToString ()
CompString
CompAction::edgeMaskToString ()
{
- CompString edge = "";
+ CompString edge;
for (int i = 0; i < SCREEN_EDGE_NUM; i++)
{
if (priv->edgeMask & (1 << i))
{
- edge += " | ";
+ if (!edge.empty ())
+ edge += " | ";
edge += edgeToString (i);
}