diff --git a/src/richtext/richtextbuffer.cpp b/src/richtext/richtextbuffer.cpp index 4ffa494e37..079912028c 100644 --- a/src/richtext/richtextbuffer.cpp +++ b/src/richtext/richtextbuffer.cpp @@ -2561,7 +2561,9 @@ bool wxRichTextParagraphLayoutBox::SetListStyle(const wxRichTextRange& range, wx { bool withUndo = ((flags & wxRICHTEXT_SETSTYLE_WITH_UNDO) != 0); // bool applyMinimal = ((flags & wxRICHTEXT_SETSTYLE_OPTIMIZE) != 0); +#ifdef __WXDEBUG__ bool specifyLevel = ((flags & wxRICHTEXT_SETSTYLE_SPECIFY_LEVEL) != 0); +#endif // __WXDEBUG__ bool renumber = ((flags & wxRICHTEXT_SETSTYLE_RENUMBER) != 0); // Current number, if numbering