[Libreoffice-commits] core.git: Branch 'libreoffice-5-0' - sw/source

Caolán McNamara caolanm at redhat.com
Wed Dec 16 12:29:56 PST 2015


 sw/source/ui/frmdlg/cption.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 0489922093317cf55a5e12c0e4718d0c8ad7ac1a
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Dec 3 09:30:44 2015 +0000

    Resolves: tdf#94701 allow fully deleting illustration category in combobox
    
    Change-Id: Iaaefbe2311e61be3b9689c693481d149aa1355f5
    (cherry picked from commit 0261be7f92930952a470bc7f5e1d543b8907b1f0)
    (cherry picked from commit 2365ff9f02370d63aae3d5b04b90b3c1a58d1094)
    Reviewed-on: https://gerrit.libreoffice.org/20372
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>

diff --git a/sw/source/ui/frmdlg/cption.cxx b/sw/source/ui/frmdlg/cption.cxx
index e97ef56..144bc08 100644
--- a/sw/source/ui/frmdlg/cption.cxx
+++ b/sw/source/ui/frmdlg/cption.cxx
@@ -83,10 +83,10 @@ public:
 
 OUString SwCaptionDialog::our_aSepTextSave(": "); // Caption separator text
 
-//Resolves: fdo#47427 disallow typing *or* pasting content into the category box
+//Resolves: tdf#47427 disallow typing *or* pasting invalid content into the category box
 OUString TextFilterAutoConvert::filter(const OUString &rText)
 {
-    if (rText != m_sNone && !SwCalc::IsValidVarName(rText))
+    if (!rText.isEmpty() && rText != m_sNone && !SwCalc::IsValidVarName(rText))
         return m_sLastGoodText;
     m_sLastGoodText = rText;
     return rText;


More information about the Libreoffice-commits mailing list