[Libreoffice-commits] core.git: sc/source

Stephan Bergmann sbergman at redhat.com
Mon Mar 21 13:22:35 UTC 2016


 sc/source/ui/view/cellsh4.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 319ab1d20df6fa32f129bd28746a4567d14a6bef
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Mon Mar 21 14:21:01 2016 +0100

    UBSan: SfxInt16Item/SfxInt32Item mismatch
    
    ...presumably a typo in 0bd43b8c782135e5eb3018ee345a3bd409419a1b "sc lok: Extend
    uno commands: .uno:SelectRow/Column"
    
    Change-Id: I725876ab17ffeb5814919f7b418fedb4506ecf91

diff --git a/sc/source/ui/view/cellsh4.cxx b/sc/source/ui/view/cellsh4.cxx
index aa8442d..e6e98c6 100644
--- a/sc/source/ui/view/cellsh4.cxx
+++ b/sc/source/ui/view/cellsh4.cxx
@@ -323,7 +323,7 @@ void ScCellShell::ExecuteMove( SfxRequest& rReq )
                 if ( pReqArgs && pReqArgs->HasItem( FN_PARAM_1, &pColItem ) &&
                      pReqArgs->HasItem( FN_PARAM_2, &pModifierItem ) )
                 {
-                    SCCOL nCol = static_cast<SCCOL>(static_cast<const SfxInt16Item*>(pColItem)->GetValue());;
+                    SCCOL nCol = static_cast<SCCOL>(static_cast<const SfxInt32Item*>(pColItem)->GetValue());;
                     sal_Int16 nModifier = static_cast<sal_Int16>(static_cast<const SfxInt16Item*>(pModifierItem)->GetValue());
 
                     pTabViewShell->MarkColumns( nCol, nModifier );


More information about the Libreoffice-commits mailing list