diff options
Diffstat (limited to 'sc/source/ui/view/tabvwsha.cxx')
-rw-r--r-- | sc/source/ui/view/tabvwsha.cxx | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sc/source/ui/view/tabvwsha.cxx b/sc/source/ui/view/tabvwsha.cxx index e34f697cb053..33a37b3ed93d 100644 --- a/sc/source/ui/view/tabvwsha.cxx +++ b/sc/source/ui/view/tabvwsha.cxx @@ -225,7 +225,18 @@ void __EXPORT ScTabViewShell::GetState( SfxItemSet& rSet ) break; case SID_SEARCH_ITEM: - rSet.Put( ScGlobal::GetSearchItem() ); + { + SvxSearchItem searchItem = ScGlobal::GetSearchItem(); + // i35093: + if (bSearchJustOpened) + { + ScMarkData& rMarkData = pViewData->GetMarkData(); + if (rMarkData.IsMarked()) + searchItem.SetSelection( sal_True ); + } + bSearchJustOpened = sal_False; + rSet.Put(searchItem); + } break; case SID_SEARCH_OPTIONS: |