diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-08-15 12:22:32 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-08-15 12:22:32 +0200 |
commit | 581ea5dc351232f9b7b70bdcfe909d288298035e (patch) | |
tree | c1205c71b959df89ab60ca0484a15267563b941a /sc | |
parent | 2b68e03348b3b4009e8bb2af7979de36bd3450c5 (diff) |
-fsanitize=vptr
Change-Id: Idce5149277a0fbbcb8bcb92c2f368b796ac0d843
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/cellsh3.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/view/cellsh3.cxx b/sc/source/ui/view/cellsh3.cxx index d9141fe9873f..f2dadc305bac 100644 --- a/sc/source/ui/view/cellsh3.cxx +++ b/sc/source/ui/view/cellsh3.cxx @@ -546,8 +546,8 @@ void ScCellShell::Execute( SfxRequest& rReq ) pReqArgs->HasItem( FN_PARAM_2, &pHeight ) ) { std::vector<sc::ColRowSpan> aRanges; - SCCOLROW nRow = static_cast<const SfxInt16Item*>(pRow)->GetValue() - 1; - sal_uInt16 nHeight = static_cast<const SfxInt16Item*>(pHeight)->GetValue(); + SCCOLROW nRow = static_cast<const SfxUInt16Item*>(pRow)->GetValue() - 1; + sal_uInt16 nHeight = static_cast<const SfxUInt16Item*>(pHeight)->GetValue(); aRanges.push_back(sc::ColRowSpan(nRow, nRow)); pTabViewShell->SetWidthOrHeight(false, aRanges, SC_SIZE_DIRECT, nHeight); @@ -642,8 +642,8 @@ void ScCellShell::Execute( SfxRequest& rReq ) pReqArgs->HasItem( FN_PARAM_2, &pWidth ) ) { std::vector<sc::ColRowSpan> aRanges; - SCCOLROW nColumn = static_cast<const SfxInt16Item*>(pColumn)->GetValue() - 1; - sal_uInt16 nWidth = static_cast<const SfxInt16Item*>(pWidth)->GetValue(); + SCCOLROW nColumn = static_cast<const SfxUInt16Item*>(pColumn)->GetValue() - 1; + sal_uInt16 nWidth = static_cast<const SfxUInt16Item*>(pWidth)->GetValue(); aRanges.push_back(sc::ColRowSpan(nColumn, nColumn)); pTabViewShell->SetWidthOrHeight(true, aRanges, SC_SIZE_DIRECT, nWidth); |