• Stephan Bergmann's avatar
    Don't call Date's ImpYearToDays with zero year argument · b0547008
    Stephan Bergmann yazdı
    ...on which it asserts since 6d4f2dcc "Resolves:
    tdf#100452 class Date full (BCE,CE) proleptic Gregorian calendar".
    
    The assert fired when executing the Basic code from attachment 146529 to
    <https://bugs.documentfoundation.org/show_bug.cgi?id=121337>
    "FileDateTime("\\nonexistent\smb\path") returns bogus result rather than
    throwing error":
    
    > #4  0x00007ffff1d1c830 in (anonymous namespace)::ImpYearToDays(short) (nYear=0) at tools/source/datetime/tdate.cxx:55
    > #5  0x00007ffff1d1c449 in Date::DateToDays(unsigned short, unsigned short, short) (nDay=0, nMonth=0, nYear=0) at tools/source/datetime/tdate.cxx:149
    > #6  0x00007ffff1d1c3e5 in Date::GetAsNormalizedDays() const (this=0x7fffffff7268) at tools/source/datetime/tdate.cxx:142
    > #7  0x00007ffff1d1dae5 in operator-(Date const&, Date const&) (rDate1=1900-1-1, rDate2=0-0-0) at tools/source/datetime/tdate.cxx:581
    > #8  0x00007ffff5f87347 in GetDayDiff(Date const&) (rDate=0-0-0) at basic/source/runtime/methods.cxx:4653
    > #9  0x00007ffff5f8aebb in SbRtl_FileDateTime(StarBASIC*, SbxArray&, bool) (rPar=...) at basic/source/runtime/methods.cxx:3054
    
    Change-Id: I6468eeafc3daf325d3da3dfeacd08c7df1d1a8f4
    Reviewed-on: https://gerrit.libreoffice.org/63318
    Tested-by: Jenkins
    Reviewed-by: 's avatarEike Rathke <erack@redhat.com>
    b0547008
Adı
Son kayıt (commit)
Son güncelleme
..
inc Loading commit data...
qa Loading commit data...
source Loading commit data...
util Loading commit data...
AllLangMoTarget_sb.mk Loading commit data...
CppunitTest_basic_macros.mk Loading commit data...
CppunitTest_basic_scanner.mk Loading commit data...
Library_sb.mk Loading commit data...
Makefile Loading commit data...
Module_basic.mk Loading commit data...
README Loading commit data...