diff options
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/app/inputhdl.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/app/inputwin.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/app/scmod.cxx | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx index 219081a0da31..82542d243623 100644 --- a/sc/source/ui/app/inputhdl.cxx +++ b/sc/source/ui/app/inputhdl.cxx @@ -3124,7 +3124,7 @@ void ScInputHandler::CancelHandler() if (pExecuteSh) pExecuteSh->StopEditShell(); - aCursorPos.Set(MAXCOL+1,0,0); // Invalid flag + aCursorPos.Set(pExecuteSh->GetViewData().GetDocument()->MaxCol()+1,0,0); // Invalid flag mpEditEngine->SetText(OUString()); if ( !pLastState && pExecuteSh ) diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx index 6e8ee9bc2cb6..4fd72988df22 100644 --- a/sc/source/ui/app/inputwin.cxx +++ b/sc/source/ui/app/inputwin.cxx @@ -2175,7 +2175,7 @@ static ScNameInputType lcl_GetInputType( const OUString& rText ) else if ( ScRangeUtil::MakeRangeFromName( rText, pDoc, nTab, aRange, RUTL_DBASE, eConv ) ) eRet = SC_NAME_INPUT_DATABASE; else if ( comphelper::string::isdigitAsciiString( rText ) && - ( nNumeric = rText.toInt32() ) > 0 && nNumeric <= MAXROW+1 ) + ( nNumeric = rText.toInt32() ) > 0 && nNumeric <= pDoc->MaxRow()+1 ) eRet = SC_NAME_INPUT_ROW; else if ( pDoc->GetTable( rText, nNameTab ) ) eRet = SC_NAME_INPUT_SHEET; diff --git a/sc/source/ui/app/scmod.cxx b/sc/source/ui/app/scmod.cxx index 5e58bc2c3404..739d13322051 100644 --- a/sc/source/ui/app/scmod.cxx +++ b/sc/source/ui/app/scmod.cxx @@ -249,7 +249,7 @@ void ScModule::ConfigurationChanged( utl::ConfigurationBroadcaster* p, Configura SCTAB nTabCount = pDocSh->GetDocument().GetTableCount(); for (SCTAB nTab=0; nTab<nTabCount; nTab++) - pDocSh->AdjustRowHeight( 0, MAXROW, nTab ); + pDocSh->AdjustRowHeight( 0, pDocSh->GetDocument().MaxRow(), nTab ); } pObjSh = SfxObjectShell::GetNext( *pObjSh ); } @@ -1270,7 +1270,7 @@ void ScModule::ModifyOptions( const SfxItemSet& rOptSet ) pOneDocSh->CalcOutputFactor(); SCTAB nTabCount = pOneDocSh->GetDocument().GetTableCount(); for (SCTAB nTab=0; nTab<nTabCount; nTab++) - pOneDocSh->AdjustRowHeight( 0, MAXROW, nTab ); + pOneDocSh->AdjustRowHeight( 0, pDocSh->GetDocument().MaxRow(), nTab ); } pObjSh = SfxObjectShell::GetNext( *pObjSh ); } |