From b6867132dabfa51a678b54301b967bfa3843ecdf Mon Sep 17 00:00:00 2001 From: Adrian-George Bostan Date: Mon, 13 Jan 2020 21:00:11 +0200 Subject: [PATCH] Fix chapter component SetShowNumbering method --- creator/chapters.go | 1 + 1 file changed, 1 insertion(+) diff --git a/creator/chapters.go b/creator/chapters.go index 4ebf4d06b..198d697de 100644 --- a/creator/chapters.go +++ b/creator/chapters.go @@ -104,6 +104,7 @@ func (chap *Chapter) NewSubchapter(title string) *Chapter { // SetShowNumbering sets a flag to indicate whether or not to show chapter numbers as part of title. func (chap *Chapter) SetShowNumbering(show bool) { + chap.showNumbering = show chap.heading.SetText(chap.headingText()) }