From 48f9257fb1060851fc0ea5e73424d6b2d0a0780c Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Thu, 8 May 2008 09:12:04 +0000 Subject: [PATCH] not hasElementPrefix(prefix) works also when prefix is empty svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=805339 --- panelsvg.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/panelsvg.cpp b/panelsvg.cpp index 9b4fe0aa4..b949b5ad3 100644 --- a/panelsvg.cpp +++ b/panelsvg.cpp @@ -194,7 +194,11 @@ bool PanelSvg::hasElementPrefix(const QString & prefix) const { //for now it simply checks if a center element exists, //because it could make sense for certain themes to not have all the elements - return hasElement(prefix + "-center"); + if (prefix.isEmpty()) { + return hasElement("center"); + } else { + return hasElement(prefix + "-center"); + } } bool PanelSvg::hasElementPrefix(Plasma::Location location) const