summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
Diffstat (limited to 'framework')
-rw-r--r--framework/source/xml/imagesdocumenthandler.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/framework/source/xml/imagesdocumenthandler.cxx b/framework/source/xml/imagesdocumenthandler.cxx
index f18df438ab4e..927e52627e97 100644
--- a/framework/source/xml/imagesdocumenthandler.cxx
+++ b/framework/source/xml/imagesdocumenthandler.cxx
@@ -147,8 +147,7 @@ void SAL_CALL OReadImagesDocumentHandler::endDocument()
{
SolarMutexGuard g;
- if (( m_bImageContainerStartFound && !m_bImageContainerEndFound ) ||
- ( !m_bImageContainerStartFound && m_bImageContainerEndFound ) )
+ if (m_bImageContainerStartFound != m_bImageContainerEndFound)
{
OUString aErrorMessage = getErrorLineString();
aErrorMessage += "No matching start or end element 'image:imagecontainer' found!";