From c2962ced907b689811e743bb26cfcca845f7e4d5 Mon Sep 17 00:00:00 2001 From: Andrei Kortunov Date: Sun, 4 Jun 2017 23:20:43 +0400 Subject: [PATCH] Removed empty space before dialogue entry (bug #3892) --- apps/openmw/mwgui/dialogue.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwgui/dialogue.cpp b/apps/openmw/mwgui/dialogue.cpp index 771e1bf95..c03673b90 100644 --- a/apps/openmw/mwgui/dialogue.cpp +++ b/apps/openmw/mwgui/dialogue.cpp @@ -116,10 +116,14 @@ namespace MWGui void Response::write(BookTypesetter::Ptr typesetter, KeywordSearchT* keywordSearch, std::map& topicLinks) const { BookTypesetter::Style* title = typesetter->createStyle("", getDialogueTextColour("header")); - typesetter->sectionBreak(9); + if (mTitle != "") + { + typesetter->sectionBreak(9); typesetter->write(title, to_utf8_span(mTitle.c_str())); - typesetter->sectionBreak(9); + } + + typesetter->sectionBreak(); typedef std::pair Range; std::map hyperLinks;