[Libreoffice-commits] core.git: sw/source
Mike Kaganski (via logerrit)
logerrit at kemper.freedesktop.org
Sat Jan 18 14:53:09 UTC 2020
sw/source/uibase/docvw/edtwin.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 0d2084e198717301da0678eae311f10e6a9c5d78
Author: Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Sat Jan 18 12:27:37 2020 +0300
Commit: Mike Kaganski <mike.kaganski at 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 <nemeth at 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);
More information about the Libreoffice-commits
mailing list