sc/source/ui/view/cellsh3.cxx |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 581ea5dc351232f9b7b70bdcfe909d288298035e
Author: Stephan Bergmann <sberg...@redhat.com>
Date:   Mon Aug 15 12:22:32 2016 +0200

    -fsanitize=vptr
    
    Change-Id: Idce5149277a0fbbcb8bcb92c2f368b796ac0d843

diff --git a/sc/source/ui/view/cellsh3.cxx b/sc/source/ui/view/cellsh3.cxx
index d9141fe..f2dadc3 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);
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to