From 61762b56e49217b83a29cdd87e0722f9ee99745a Mon Sep 17 00:00:00 2001 From: Danny Baumann Date: Thu, 26 Feb 2009 07:11:57 +0100 Subject: Fix formatting of edge strings. --- src/action.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/action.cpp') 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); } -- cgit v1.1