sw/source/ui/dbui/dbinsdlg.cxx |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

New commits:
commit 174ca6f2f539141ecea142b2f1a540ae0055d302
Author:     Mike Kaganski <[email protected]>
AuthorDate: Wed Sep 10 17:26:39 2025 +0500
Commit:     Mike Kaganski <[email protected]>
CommitDate: Wed Sep 10 19:41:31 2025 +0200

    Use Date ctor taking css::util::Date
    
    Change-Id: I2c652450f8d722af0115f556cb510836f13318db
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190759
    Reviewed-by: Mike Kaganski <[email protected]>
    Tested-by: Jenkins

diff --git a/sw/source/ui/dbui/dbinsdlg.cxx b/sw/source/ui/dbui/dbinsdlg.cxx
index 06bf6267c51a..ca29ed54341d 100644
--- a/sw/source/ui/dbui/dbinsdlg.cxx
+++ b/sw/source/ui/dbui/dbinsdlg.cxx
@@ -1281,9 +1281,7 @@ void SwInsertDBColAutoPilot::DataToDoc( const 
Sequence<Any>& rSelection,
 
                                 {
                                     ::Date aStandard(30, 12, 1899);
-                                    ::Date 
aCompare(aDBFormatData.aNullDate.Day ,
-                                                    
aDBFormatData.aNullDate.Month,
-                                                    
aDBFormatData.aNullDate.Year);
+                                    ::Date aCompare(aDBFormatData.aNullDate);
                                     if(aStandard != aCompare)
                                         nValue += (aStandard - aCompare);
                                 }
commit 24b2d4d00c8ed5cfc1d16000dd8a0048271e9c22
Author:     Mike Kaganski <[email protected]>
AuthorDate: Wed Sep 10 17:12:09 2025 +0500
Commit:     Mike Kaganski <[email protected]>
CommitDate: Wed Sep 10 19:41:23 2025 +0200

    tdf#168349: fix "standard" date in SwInsertDBColAutoPilot::DataToDoc (3)
    
    This fixes bAsTable case.
    
    Change-Id: I48febf1def0198b9a7275fe4167e19287a0d1e19
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190758
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <[email protected]>

diff --git a/sw/source/ui/dbui/dbinsdlg.cxx b/sw/source/ui/dbui/dbinsdlg.cxx
index 9679592596ea..06bf6267c51a 100644
--- a/sw/source/ui/dbui/dbinsdlg.cxx
+++ b/sw/source/ui/dbui/dbinsdlg.cxx
@@ -1085,7 +1085,7 @@ void SwInsertDBColAutoPilot::DataToDoc( const 
Sequence<Any>& rSelection,
                             {
                                 if(rNumFormatr.GetType(aNumFormat.GetValue()) 
& SvNumFormatType::DATE)
                                 {
-                                    ::Date aStandard(1,1,1900);
+                                    ::Date aStandard(30, 12, 1899);
                                     if (rNumFormatr.GetNullDate() != aStandard)
                                         fVal += (aStandard - 
rNumFormatr.GetNullDate());
                                 }

Reply via email to