diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2014-11-09 21:52:54 +0200 |
---|---|---|
committer | Maxim Monastirsky <momonasmon@gmail.com> | 2014-11-09 21:56:49 +0200 |
commit | 1166966eb4112fdf332c656eae5082d82a3ec2f2 (patch) | |
tree | 8cd32818e4b90f1ed8e89a310c7663555cdd00ee /unotools | |
parent | c8867b4c360f808386030ef6c87802403b42b70a (diff) |
Related: fdo#80755 Always update the thumbnail
Even if the new one is empty. That's the most simple
solution for a case of retro-password protecting of
an existing file.
Change-Id: I7752970c1dee9ec7bf61d390b8b1618a44370e16
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/config/historyoptions.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/unotools/source/config/historyoptions.cxx b/unotools/source/config/historyoptions.cxx index b4195691a6d6..7899c8670911 100644 --- a/unotools/source/config/historyoptions.cxx +++ b/unotools/source/config/historyoptions.cxx @@ -371,12 +371,9 @@ void SvtHistoryOptions_Impl::AppendItem(EHistoryType eHistory, // The item to be appended already exists if (xItemList->hasByName(sURL)) { - if (!sThumbnail.isEmpty()) - { - // update the thumbnail - xItemList->getByName(sURL) >>= xSet; - xSet->setPropertyValue(s_sThumbnail, uno::makeAny(sThumbnail)); - } + // update the thumbnail + xItemList->getByName(sURL) >>= xSet; + xSet->setPropertyValue(s_sThumbnail, uno::makeAny(sThumbnail)); for (sal_Int32 i=0; i<nLength; ++i) { |