summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorThorsten Behrens <tbehrens@novell.com>2010-10-26 22:25:56 +0200
committerThorsten Behrens <tbehrens@novell.com>2010-10-26 22:25:56 +0200
commitd585f5d415bb4d80d6911f74cf584da438361b6d (patch)
tree91659f5c11404b2bc1866116dc7cd4476700f931 /svtools
parentd7ab839b8e257e48639212b44943ae3556d28d46 (diff)
Fix refresh of OLE object previews
A fix for n#411855, to make preview object refresh in all cases. Applied patch svtools-update-ole.diff
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/misc/embedhlp.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/svtools/source/misc/embedhlp.cxx b/svtools/source/misc/embedhlp.cxx
index c8bf04e2f464..22c8d889bd83 100644
--- a/svtools/source/misc/embedhlp.cxx
+++ b/svtools/source/misc/embedhlp.cxx
@@ -180,7 +180,9 @@ void SAL_CALL EmbedEventListener_Impl::modified( const lang::EventObject& ) thro
else
pObject->UpdateReplacement();
}
- else if ( nState == embed::EmbedStates::UI_ACTIVE || nState == embed::EmbedStates::INPLACE_ACTIVE )
+ else if ( nState == embed::EmbedStates::ACTIVE ||
+ nState == embed::EmbedStates::UI_ACTIVE ||
+ nState == embed::EmbedStates::INPLACE_ACTIVE )
{
// in case the object is inplace or UI active the replacement image should be updated on demand
pObject->UpdateReplacementOnDemand();