From e2f43574f44a2787914f3cd97ff7c49ea12c96e1 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 12 Apr 2015 23:24:10 +0200 Subject: [PATCH] Improve error message for use of invalid alignment flags in XRC. Typically to achieve horizontal alignment inside a horizontal sizer a spacer needs to be inserted before the element, so explicitly say this instead of advising to set proportion which wouldn't allow aligning the item. --- src/xrc/xh_sizer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xrc/xh_sizer.cpp b/src/xrc/xh_sizer.cpp index ca60e8a3a2..6eb9621557 100644 --- a/src/xrc/xh_sizer.cpp +++ b/src/xrc/xh_sizer.cpp @@ -699,8 +699,8 @@ int wxSizerXmlHandler::GetSizerFlags() wxString::Format ( "%s alignment flag %s has no effect inside " - "a %s box sizer, remove it and consider setting " - "the item proportion instead", + "a %s box sizer, remove it and consider inserting " + "a spacer instead", orientName[orient], flagDesc, orientName[orient]