[Libreoffice-commits] core.git: sw/source

Noel Grandin (via logerrit) logerrit at kemper.freedesktop.org
Wed Mar 4 18:29:12 UTC 2020


 sw/source/ui/fldui/fldvar.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 0c225c7c2b47d7ec57ab7f3f2a900aaac78031d0
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Wed Mar 4 15:08:31 2020 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Wed Mar 4 19:28:29 2020 +0100

    tdf#129796 junk in reference edit box
    
    regression from
        commit ebdf70cc68989d209965768edc8a3bdf27543c48
        Date:   Fri Sep 20 15:18:01 2019 +0200
        convert SwFieldTypesEnum to scoped enum
    
    Change-Id: Ifec7eb3bb3570f277aed365dcf38da477e437fea
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89968
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/sw/source/ui/fldui/fldvar.cxx b/sw/source/ui/fldui/fldvar.cxx
index f08d10d81fbf..7697e4413da7 100644
--- a/sw/source/ui/fldui/fldvar.cxx
+++ b/sw/source/ui/fldui/fldvar.cxx
@@ -395,7 +395,7 @@ void SwFieldVarPage::SubTypeHdl(const weld::TreeView* pBox)
                 m_xNameED->set_text( sName );
 
                 // User- or SetField ?
-                if (GetFieldMgr().GetFieldType(SwFieldIds::User, sName))
+                if (!GetFieldMgr().GetFieldType(SwFieldIds::User, sName)) // SetExp
                 {
                     // is there a corresponding SetField
                     SwSetExpFieldType* pSetTyp = static_cast<SwSetExpFieldType*>(


More information about the Libreoffice-commits mailing list