diff options
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; |