summaryrefslogtreecommitdiffstats
path: root/sw/inc/tblafmt.hxx
diff options
context:
space:
mode:
authorIvan Timofeev <timofeev.i.s@gmail.com>2013-07-29 21:43:59 +0400
committerMichael Stahl <mstahl@redhat.com>2013-07-29 19:54:44 +0000
commit2f527be5513159c0aebd93f356cbd2b1dc04b253 (patch)
tree499cda7b327d53c8985b3c99325cfad6097935ed /sw/inc/tblafmt.hxx
parentJust quiet cppcheck (diff)
downloadcore-2f527be5513159c0aebd93f356cbd2b1dc04b253.tar.gz
core-2f527be5513159c0aebd93f356cbd2b1dc04b253.zip
fdo#67467: fix crash when renaming table in AutoFormat dialog
this reverts 5031e17d4b11181be94448702b1026bd38e0b3c4 and uses ptr_vector::release instead of ptr_vector::erase to prevent object deletion. The use of "transfer" leads to "Assertion `(void*)&from != (void*)this' failed". Change-Id: I77467ce9e1d9dd4b833032ebbe920cbb34d36675 Reviewed-on: https://gerrit.libreoffice.org/5172 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'sw/inc/tblafmt.hxx')
-rw-r--r--sw/inc/tblafmt.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/inc/tblafmt.hxx b/sw/inc/tblafmt.hxx
index 58b1f10df2ee..404aaf6e3af2 100644
--- a/sw/inc/tblafmt.hxx
+++ b/sw/inc/tblafmt.hxx
@@ -314,7 +314,7 @@ public:
SwTableAutoFmt & operator[](size_t i);
void InsertAutoFmt(size_t i, SwTableAutoFmt * pFmt);
void EraseAutoFmt(size_t i);
- void MoveAutoFmt(size_t target, size_t source);
+ SwTableAutoFmt* ReleaseAutoFmt(size_t i);
sal_Bool Load();
sal_Bool Save() const;