[Libreoffice-commits] core.git: Branch 'libreoffice-7-2' - extensions/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Mon Aug 16 10:08:33 UTC 2021


 extensions/source/propctrlr/standardcontrol.cxx |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

New commits:
commit dbdf6fa77fd350b53ef3b1b78eb9db244e608c72
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Jul 16 15:53:00 2021 +0100
Commit:     Michael Stahl <michael.stahl at allotropia.de>
CommitDate: Mon Aug 16 12:07:49 2021 +0200

    Related: tdf#143357 set blank label for no date
    
    instead of current system date
    
    Change-Id: Ic504b34990a8ea5151ec653de2db860c1cd4b8ba
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119079
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    (cherry picked from commit ecf901685ac0c6c7b27b81096bea96cdc3d2c2ca)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120429
    Reviewed-by: Michael Stahl <michael.stahl at allotropia.de>

diff --git a/extensions/source/propctrlr/standardcontrol.cxx b/extensions/source/propctrlr/standardcontrol.cxx
index 2307d0bf01f4..7cbca1c276b4 100644
--- a/extensions/source/propctrlr/standardcontrol.cxx
+++ b/extensions/source/propctrlr/standardcontrol.cxx
@@ -97,15 +97,18 @@ namespace pcr
 
     void SAL_CALL ODateControl::setValue( const Any& _rValue )
     {
+        SvtCalendarBox* pCalendarBox = getTypedControlWindow();
+
         util::Date aUNODate;
         if ( !( _rValue >>= aUNODate ) )
         {
-            getTypedControlWindow()->set_date(::Date(::Date::SYSTEM));
+            pCalendarBox->set_date(::Date(::Date::SYSTEM));
+            pCalendarBox->set_label("");
         }
         else
         {
             ::Date aDate( aUNODate.Day, aUNODate.Month, aUNODate.Year );
-            getTypedControlWindow()->set_date(aDate);
+            pCalendarBox->set_date(aDate);
         }
     }
 


More information about the Libreoffice-commits mailing list