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

Caolán McNamara caolanm at redhat.com
Tue Jan 24 15:51:28 UTC 2017


 extensions/source/propctrlr/formcomponenthandler.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit d92b12604b644195328b89cb9355cd4fc4bc3e2d
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Jan 24 15:49:47 2017 +0000

    tdf#105467 new color widget doesn't support XStringListControl
    
    so this threw and mangled the dialog. New color dialog doesn't need
    to be told the name of colors, it figures that out itself.
    
    Change-Id: I89382b6b26312fc90c967620c654ea611cbd9616

diff --git a/extensions/source/propctrlr/formcomponenthandler.cxx b/extensions/source/propctrlr/formcomponenthandler.cxx
index 91781c8..46af453 100644
--- a/extensions/source/propctrlr/formcomponenthandler.cxx
+++ b/extensions/source/propctrlr/formcomponenthandler.cxx
@@ -1369,7 +1369,7 @@ namespace pcr
         if ( ( aProperty.Attributes & PropertyAttribute::MAYBEVOID ) != 0 )
         {
             // insert the string "Default" string, if necessary
-            if ( bNeedDefaultStringIfVoidAllowed || ( nControlType == PropertyControlType::ColorListBox ) )
+            if (bNeedDefaultStringIfVoidAllowed)
             {
                 Reference< XStringListControl > xStringList( aDescriptor.Control, UNO_QUERY_THROW );
                 xStringList->prependListEntry( m_sDefaultValueString );


More information about the Libreoffice-commits mailing list