diff options
author | Andrea Gelmini <andrea.gelmini@gelma.net> | 2016-04-30 14:48:32 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-05-01 09:53:04 +0000 |
commit | 931b6a153754cb2515650f6b6f46a4dd77c06a03 (patch) | |
tree | 9e2049a82075d0a7b748228af49471f07cb60946 /vbahelper/source | |
parent | 506c929a0a209acd8ba3b1e3e94f089f51d01c16 (diff) |
Fix typos in code
Change-Id: I408f630732a10567a3352e0c96f1289a1cf6ca81
Reviewed-on: https://gerrit.libreoffice.org/24534
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'vbahelper/source')
-rw-r--r-- | vbahelper/source/vbahelper/vbashape.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/vbahelper/source/vbahelper/vbashape.cxx b/vbahelper/source/vbahelper/vbashape.cxx index d6cce93b7c0d..6e9f3f6fa9db 100644 --- a/vbahelper/source/vbahelper/vbashape.cxx +++ b/vbahelper/source/vbahelper/vbashape.cxx @@ -370,9 +370,9 @@ ScVbaShape::Delete() throw (uno::RuntimeException, std::exception) void SAL_CALL ScVbaShape::ZOrder( sal_Int32 ZOrderCmd ) throw (uno::RuntimeException, std::exception) { - sal_Int32 nOrderPositon; + sal_Int32 nOrderPosition; uno::Any aOrderPostion = m_xPropertySet->getPropertyValue( "ZOrder" ); - aOrderPostion >>= nOrderPositon; + aOrderPostion >>= nOrderPosition; switch( ZOrderCmd ) { case office::MsoZOrderCmd::msoBringToFront: @@ -382,14 +382,14 @@ ScVbaShape::ZOrder( sal_Int32 ZOrderCmd ) throw (uno::RuntimeException, std::exc m_xPropertySet->setPropertyValue( "ZOrder" , uno::makeAny( (sal_Int32)0 ) ); break; case office::MsoZOrderCmd::msoBringForward: - nOrderPositon += 1; - m_xPropertySet->setPropertyValue( "ZOrder" , uno::makeAny( nOrderPositon ) ); + nOrderPosition += 1; + m_xPropertySet->setPropertyValue( "ZOrder" , uno::makeAny( nOrderPosition ) ); break; case office::MsoZOrderCmd::msoSendBackward: - if( nOrderPositon > 0 ) + if( nOrderPosition > 0 ) { - nOrderPositon -= 1; - m_xPropertySet->setPropertyValue( "ZOrder" , uno::makeAny( nOrderPositon ) ); + nOrderPosition -= 1; + m_xPropertySet->setPropertyValue( "ZOrder" , uno::makeAny( nOrderPosition ) ); } break; // below two commands use with Writer for text and image object. |