diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-06-29 21:54:18 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-06-29 21:54:18 +0200 |
commit | 58d6a7a6acd32dbf6e58a0b2cce32080e808ed4e (patch) | |
tree | 219d069648c6ace0a410d7a6fa62de11d0d31b22 | |
parent | 53d146af56093a8e353856747f23b34bc916655b (diff) |
fix for fdo#36963: name box always selects cell in the first sheet
add the current table number as fallback to the address parser for the
case that no table is specified
-rw-r--r-- | sc/source/core/tool/address.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/app/inputwin.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/tool/address.cxx b/sc/source/core/tool/address.cxx index eb2c81447..8c588e3a2 100644 --- a/sc/source/core/tool/address.cxx +++ b/sc/source/core/tool/address.cxx @@ -1424,7 +1424,7 @@ sal_uInt16 ScRange::ParseAny( const String& r, ScDocument* pDoc, if ( (nRet & nValid) != nValid ) { - ScAddress aAdr; + ScAddress aAdr(aStart);//initialize with currentPos as fallback for table number nRet = aAdr.Parse( r, pDoc, rDetails ); if ( nRet & SCA_VALID ) aStart = aEnd = aAdr; diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx index 9c8d4ca53..ac6257677 100644 --- a/sc/source/ui/app/inputwin.cxx +++ b/sc/source/ui/app/inputwin.cxx @@ -1694,7 +1694,7 @@ void ScPosWnd::DoEnter() { // Note that SID_CURRENTCELL always expects address to // be in Calc A1 format. Convert the text. - ScRange aRange; + ScRange aRange(0,0,pViewData->GetTabNo()); aRange.ParseAny(aText, pDoc, pDoc->GetAddressConvention()); aRange.Format(aText, SCR_ABS_3D, pDoc, ::formula::FormulaGrammar::CONV_OOO); } |