diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2011-05-17 11:27:07 +0900 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2011-05-18 14:51:25 -0400 |
commit | a4ee60a86b62af6cf83e9a70152f06f50a79982a (patch) | |
tree | 2c61f90a13bc286134d2e4036386afff3c60c1da /sc/source/ui/view/viewfun2.cxx | |
parent | 5bff70a55a8629d21543fb247ec01c1443e79deb (diff) |
fdo#34072
replace content in unprotected cells, even if the sheet is protected
Diffstat (limited to 'sc/source/ui/view/viewfun2.cxx')
-rw-r--r-- | sc/source/ui/view/viewfun2.cxx | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/sc/source/ui/view/viewfun2.cxx b/sc/source/ui/view/viewfun2.cxx index ec16f0f4a..00dc12fd4 100644 --- a/sc/source/ui/view/viewfun2.cxx +++ b/sc/source/ui/view/viewfun2.cxx @@ -1632,22 +1632,6 @@ void ScViewFunc::SearchAndReplace( const SvxSearchItem* pSearchItem, } } - if ( nCommand == SVX_SEARCHCMD_REPLACE - || nCommand == SVX_SEARCHCMD_REPLACE_ALL ) - { - for ( SCTAB j = nStartTab; j <= nEndTab; j++ ) - { - if ( (bAllTables || rMark.GetTableSelect( j )) && - pDoc->IsTabProtected( j ) ) - { - if ( pOldSelectedTables ) - delete [] pOldSelectedTables; - ErrorMessage(STR_PROTECTIONERR); - return; - } - } - } - if ( nCommand == SVX_SEARCHCMD_FIND || nCommand == SVX_SEARCHCMD_FIND_ALL) bAddUndo = false; |