summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--svx/source/tbxctrls/tbunosearchcontrollers.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/svx/source/tbxctrls/tbunosearchcontrollers.cxx b/svx/source/tbxctrls/tbunosearchcontrollers.cxx
index 5005d9c40cd7..acbb95e26b30 100644
--- a/svx/source/tbxctrls/tbunosearchcontrollers.cxx
+++ b/svx/source/tbxctrls/tbunosearchcontrollers.cxx
@@ -428,9 +428,15 @@ void SAL_CALL FindTextToolbarController::initialize( const css::uno::Sequence< :
{
::rtl::OUString sItemCommand = pToolBox->GetItemCommand(i);
if ( sItemCommand == COMMAND_DOWNSEARCH )
+ {
+ pToolBox->EnableItem(i, sal_False);
m_nDownSearchId = i;
+ }
else if ( sItemCommand == COMMAND_UPSEARCH )
+ {
+ pToolBox->EnableItem(i, sal_False);
m_nUpSearchId = i;
+ }
}
}