summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorFrank Schoenheit [fs] <frank.schoenheit@sun.com>2010-11-01 12:50:56 +0100
committerFrank Schoenheit [fs] <frank.schoenheit@sun.com>2010-11-01 12:50:56 +0100
commit11e03877e276f9ffc1b2d849f9684303f722852e (patch)
tree5b9d71581a084800e8496436de3701ed0b394df8 /svx
parent4451fc307f9bb4bc0e989a9cb4a7788c9cf1e4fa (diff)
dba34a: properly append the OR when retrieving the filter clause
Diffstat (limited to 'svx')
-rw-r--r--svx/source/form/formcontroller.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/form/formcontroller.cxx b/svx/source/form/formcontroller.cxx
index 09ee74afaf85..f43233ae08ba 100644
--- a/svx/source/form/formcontroller.cxx
+++ b/svx/source/form/formcontroller.cxx
@@ -862,9 +862,6 @@ void FormController::getFastPropertyValue( Any& rValue, sal_Int32 nHandle ) cons
if ( rRow.empty() )
continue;
- if ( aFilter.getLength() )
- aFilter.appendAscii( " OR " );
-
::rtl::OUStringBuffer aRowFilter;
for ( FmFilterRow::const_iterator condition = rRow.begin(); condition != rRow.end(); ++condition )
{
@@ -890,6 +887,9 @@ void FormController::getFastPropertyValue( Any& rValue, sal_Int32 nHandle ) cons
}
if ( aRowFilter.getLength() > 0 )
{
+ if ( aFilter.getLength() )
+ aFilter.appendAscii( " OR " );
+
aFilter.appendAscii( "( " );
aFilter.append( aRowFilter.makeStringAndClear() );
aFilter.appendAscii( " )" );