sw/source/uibase/docvw/edtwin.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 0d2084e198717301da0678eae311f10e6a9c5d78
Author:     Mike Kaganski <mike.kagan...@collabora.com>
AuthorDate: Sat Jan 18 12:27:37 2020 +0300
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Sat Jan 18 15:52:33 2020 +0100

    tdf#130066: reset calendar to today for word completion
    
    Change-Id: I8a9c34fb0ae9174cace0df25b6b233ae3e0a3af6
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87008
    Reviewed-by: László Németh <nem...@numbertext.org>
    Tested-by: Jenkins

diff --git a/sw/source/uibase/docvw/edtwin.cxx 
b/sw/source/uibase/docvw/edtwin.cxx
index 4e51062da05a..c802664c8aeb 100644
--- a/sw/source/uibase/docvw/edtwin.cxx
+++ b/sw/source/uibase/docvw/edtwin.cxx
@@ -5988,6 +5988,7 @@ void QuickHelpData::FillStrArr( SwWrtShell const & rSh, 
const OUString& rWord )
 
     if (rWord[0] == '2')
     {
+        (*pCalendar)->setGregorianDateTime(Date(Date::SYSTEM)); // tdf#130066: 
reset today
         OUStringBuffer rStr("");
         rStr.append(sal::static_int_cast< sal_Int32 
>((*pCalendar)->getValue(i18n::CalendarFieldIndex::YEAR))).append("-");
         sal_Int32 nMonth = sal::static_int_cast< sal_Int32 
>((*pCalendar)->getValue(i18n::CalendarFieldIndex::MONTH)+1);
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to