From 2710ba75df96be29dcf817ecb774592d492aa42d Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Sun, 22 May 2011 19:23:48 +0200 Subject: [PATCH] more hints that can be prefix-specific hint-tile-center, hint-stretch-borders and hint-no-border-padding now support prefixes too (of course being retrocompatible) --- framesvg.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/framesvg.cpp b/framesvg.cpp index be989a1c6..704cd3b75 100644 --- a/framesvg.cpp +++ b/framesvg.cpp @@ -1010,9 +1010,9 @@ void FrameSvgPrivate::updateSizes() const //since it's rectangular, topWidth and bottomWidth must be the same //the ones that don't have a prefix is for retrocompatibility - frame->tileCenter = q->hasElement("hint-tile-center"); - frame->noBorderPadding = q->hasElement("hint-no-border-padding"); - frame->stretchBorders = q->hasElement("hint-stretch-borders"); + frame->tileCenter = (q->hasElement("hint-tile-center") || q->hasElement(prefix % "hint-tile-center")); + frame->noBorderPadding = (q->hasElement("hint-no-border-padding") || q->hasElement(prefix % "hint-no-border-padding")); + frame->stretchBorders = (q->hasElement("hint-stretch-borders") || q->hasElement(prefix % "hint-stretch-borders")); q->resize(s); }