1. 28 Şub, 2019 6 kayıt (commit)
    • Stephan Bergmann's avatar
      loplugin:includeform · 88156ea3
      Stephan Bergmann yazdı
      Change-Id: Id2c44c104a417feba152d4af43caca561f3432bf
      Reviewed-on: https://gerrit.libreoffice.org/68465
      Tested-by: Jenkins
      Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
      88156ea3
    • Stephan Bergmann's avatar
      In FitToAcutalSize, keep SwColumn's width >= left + right borders · 0d0119ef
      Stephan Bergmann yazdı
      Given SwColumn::m_nWish is documented as "Desired width, borders included."
      (sw/inc/fmtclds.hxx), it appears that the invariant
      
        GetWishWidth() >= GetLeft() + GetRight()
      
      should always hold for SwColumn instances.
      
      However, during UITest_writer_tests4's test_tdf113284 loading of
      sw/qa/uitest/writer_tests/data/tdf113284.odt, it appears that some five-column
      table is created for which initially all SwColumns'
      
        GetWishWidth() = 13107
        GetLeft() = 144 (except for first SwColumn, where it's 0)
        GetRight() = 144 (except for last SwColumn, where it's 0)
      
      and later FitToActualSize is called reducing each SwColunn to
      
        GetWishWidth() = 286
      
      so that for most SwColumns (except first and last), GetLeft() + GetRight() = 288
      would exceed GetWishWidth().  And then (still during loading of the test's
      document), SwFormatCol::CalcPrtColWidth (sw/source/core/layout/atrfrm.cxx) is
      called for such a problematic SwColumn, trying to subtract from its
      GetWishWidth() (the result of SwFormatCol::CalcColWidth) both GetLeft() and
      GetRight(), and store that into sal_uInt16 nRet.  Which triggers Clang's
      -fsanitize=implicit-signed-integer-truncation "runtime error: implicit
      conversion from type 'int' of value -2 (32-bit, signed) to type 'sal_uInt16'
      (aka 'unsigned short') changed the value to 65534 (16-bit, unsigned)".
      
      So make sure that FitToAcutalSize upholds that presumed SwColumns invariant,
      shrinking the borders as necessary.
      
      Change-Id: I3f6fc07e65a0fc5d5f58c99f1dcdea4467b825f0
      Reviewed-on: https://gerrit.libreoffice.org/68463
      Tested-by: Jenkins
      Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.com>
      0d0119ef
    • Miklos Vajna's avatar
      sw btlr writing mode shell: left/right cursor travelling, fix dest para · 8ae5a988
      Miklos Vajna yazdı
      Fix aVerticalLeftToRightBottomToTop:
      
      - fnXDiff takes "logically larger, logically smaller" arguments, so it's
        first - second for top to bottom text (existing directions) but it's
        second - first for btlr
      
      - fnXInc was effectively unused before, but it probably meant to provide
        logical left + width, so set that to physical left - width for btlr
      
      And then port 3 places in lcl_UpDown() to use aRectFnSet, so we get
      correct behavior for both ttb and btt directions.
      
      With this, pressing the left/right arrow jumps to the previous / next
      paragraph correctly.
      
      Change-Id: I1323e95e2ce0ab2d66a3ea6e02bd50df2cebf232
      Reviewed-on: https://gerrit.libreoffice.org/68462
      Tested-by: Jenkins
      Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.com>
      8ae5a988
    • Stephan Bergmann's avatar
      loplugin:stringconstant · 8701bed5
      Stephan Bergmann yazdı
      Change-Id: I84657379bfc999df40a17fc199bdd20b95414e32
      Reviewed-on: https://gerrit.libreoffice.org/68468
      Tested-by: Jenkins
      Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
      8701bed5
    • Stephan Bergmann's avatar
      loplugin:externvar · 846a91fa
      Stephan Bergmann yazdı
      Change-Id: I7f09837e76a8368fd60aed1bb3a16fd0434e11ec
      Reviewed-on: https://gerrit.libreoffice.org/68466
      Tested-by: Jenkins
      Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
      846a91fa
    • Andrea Gelmini's avatar
      Fix typo · e85e3866
      Andrea Gelmini yazdı
      Change-Id: I8dc9d97b384a2686f7513499e3ee5819a1b05fe8
      Reviewed-on: https://gerrit.libreoffice.org/68482
      Tested-by: Jenkins
      Reviewed-by: 's avatarJens Carl <j.carl43@gmx.de>
      e85e3866
  2. 27 Şub, 2019 34 kayıt (commit)