summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2018-01-06 21:37:11 +0100
committerLionel Elie Mamane <lionel@mamane.lu>2018-01-07 08:04:05 +0100
commit40c0e38a444d8a36ac4b2ff9adb01b55f57bb7c3 (patch)
tree6947bab89b52b1b985819698790fb3af70c16d7d /svx
parent29fe8b41428c72f8dc20b44c56caac057c1b6759 (diff)
filter navigator: "Filter for" for first position
when opening the navigator with a blank filter Change-Id: Ib019714c3c778506633f4d4fa23e8faa0ac1851d Reviewed-on: https://gerrit.libreoffice.org/47518 Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu> Tested-by: Lionel Elie Mamane <lionel@mamane.lu>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/form/filtnav.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/svx/source/form/filtnav.cxx b/svx/source/form/filtnav.cxx
index 8dd28703a9d9..99c725eef48d 100644
--- a/svx/source/form/filtnav.cxx
+++ b/svx/source/form/filtnav.cxx
@@ -470,7 +470,8 @@ void SAL_CALL FmFilterAdapter::disjunctiveTermAdded( const FilterEvent& Event )
const ::std::vector< FmFilterData* >::iterator insertPos = pFormItem->GetChildren().begin() + nInsertPos;
- FmFilterItems* pFilterItems = new FmFilterItems(pFormItem, SvxResId(RID_STR_FILTER_FILTER_OR));
+ // "Filter for" for first position, "Or" for the other positions
+ FmFilterItems* pFilterItems = new FmFilterItems(pFormItem, (nInsertPos?SvxResId(RID_STR_FILTER_FILTER_OR):SvxResId(RID_STR_FILTER_FILTER_FOR)));
m_pModel->Insert( insertPos, pFilterItems );
}