From 40c84134ae06e12d002c706d431a9b0e466a754c Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Tue, 12 Aug 2014 08:52:41 +0000 Subject: [PATCH] Fix deletion of cells in defragment git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77066 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/richtext/richtextbuffer.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/wx/richtext/richtextbuffer.h b/include/wx/richtext/richtextbuffer.h index dbfda5f288..5b26abca85 100644 --- a/include/wx/richtext/richtextbuffer.h +++ b/include/wx/richtext/richtextbuffer.h @@ -5760,6 +5760,9 @@ public: virtual wxString GetPropertiesMenuLabel() const { return wxGetTranslation("&Cell"); } + /// Don't allow a cell to be deleted in Defragment + virtual bool IsEmpty() const { return false; } + // Accessors /**