diff options
author | Frank Schoenheit [fs] <frank.schoenheit@sun.com> | 2010-11-01 12:50:56 +0100 |
---|---|---|
committer | Frank Schoenheit [fs] <frank.schoenheit@sun.com> | 2010-11-01 12:50:56 +0100 |
commit | 11e03877e276f9ffc1b2d849f9684303f722852e (patch) | |
tree | 5b9d71581a084800e8496436de3701ed0b394df8 /svx | |
parent | 4451fc307f9bb4bc0e989a9cb4a7788c9cf1e4fa (diff) |
dba34a: properly append the OR when retrieving the filter clause
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/form/formcontroller.cxx | 6 |
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( " )" ); |