summaryrefslogtreecommitdiffstats
path: root/editeng
diff options
context:
space:
mode:
authorRosemary Sebastian <rosemaryseb8@gmail.com>2016-05-01 14:53:20 +0530
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-05-01 10:34:53 +0000
commit87cccfbf7e9c3031bb12dd966626f28e134c8f75 (patch)
treec4340dd2b7296a502f218ff20f0847776cd1616d /editeng
parenttdf93563 volatile signal re-enterancy guards (diff)
downloadcore-87cccfbf7e9c3031bb12dd966626f28e134c8f75.tar.gz
core-87cccfbf7e9c3031bb12dd966626f28e134c8f75.zip
Replace '||' with '&&'
so that the condition doesn't always evaluate to true Change-Id: I66ba3d4c7985e1fad60f12836e44167f19216588 Reviewed-on: https://gerrit.libreoffice.org/24548 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/uno/unofield.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/editeng/source/uno/unofield.cxx b/editeng/source/uno/unofield.cxx
index 53398753a636..1ae11c5d8337 100644
--- a/editeng/source/uno/unofield.cxx
+++ b/editeng/source/uno/unofield.cxx
@@ -481,7 +481,7 @@ SvxFieldData* SvxUnoTextField::CreateFieldData() const throw()
{
static_cast<SvxAuthorField*>(pData)->SetFormat( SVXAUTHORFORMAT_SHORTNAME );
}
- else if( mpImpl->mnInt16 >= SVXAUTHORFORMAT_FULLNAME || mpImpl->mnInt16 <= SVXAUTHORFORMAT_SHORTNAME )
+ else if( mpImpl->mnInt16 >= SVXAUTHORFORMAT_FULLNAME && mpImpl->mnInt16 <= SVXAUTHORFORMAT_SHORTNAME )
{
static_cast<SvxAuthorField*>(pData)->SetFormat( (SvxAuthorFormat) mpImpl->mnInt16 );
}