sc/source/ui/docshell/macromgr.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 62d542e9b1bb1b442562951d21100fd61be5f0c7
Author: Jan-Marek Glogowski <glo...@fbihome.de>
Date:   Mon Oct 2 21:03:21 2017 +0200

    Remove undefined elements after std::unique
    
    Change-Id: Ifebd1124fa081d50797904175d90e6d26d50ab7f

diff --git a/sc/source/ui/docshell/macromgr.cxx 
b/sc/source/ui/docshell/macromgr.cxx
index 29e66cc5f1ab..4cb5e41403f8 100644
--- a/sc/source/ui/docshell/macromgr.cxx
+++ b/sc/source/ui/docshell/macromgr.cxx
@@ -77,7 +77,9 @@ public:
 
         // Remove duplicates.
         std::sort(rCellList.begin(), rCellList.end());
-        std::unique(rCellList.begin(), rCellList.end());
+        auto last = std::unique(rCellList.begin(), rCellList.end());
+        rCellList.erase(last, rCellList.end());
+
         // exception safe copy
         vector<ScFormulaCell*> temp(rCellList);
         rCells.swap(temp);
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to