From 5378b90da83f1a3a49b39a13e7458154a4b9bb78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Wed, 6 Jun 2018 13:46:36 +0200 Subject: [PATCH] [sequence] SequenceDefinition: Delete weird empty space to avoid getting u(n ) when applying ExpressionLayout::writeInTextBuffer --- apps/sequence/sequence.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/sequence/sequence.cpp b/apps/sequence/sequence.cpp index 4824baf1c..50f13ea2f 100644 --- a/apps/sequence/sequence.cpp +++ b/apps/sequence/sequence.cpp @@ -232,19 +232,19 @@ Poincare::ExpressionLayout * Sequence::definitionName() { if (m_type == Type::Explicit) { m_definitionName = new HorizontalLayout( new CharLayout(name()[0], KDText::FontSize::Large), - new VerticalOffsetLayout(LayoutEngine::createStringLayout("n ", 2, KDText::FontSize::Small), VerticalOffsetLayout::Type::Subscript, false), + new VerticalOffsetLayout(LayoutEngine::createStringLayout("n", 1, KDText::FontSize::Small), VerticalOffsetLayout::Type::Subscript, false), false); } if (m_type == Type::SingleRecurrence) { m_definitionName = new HorizontalLayout( new CharLayout(name()[0], KDText::FontSize::Large), - new VerticalOffsetLayout(LayoutEngine::createStringLayout("n+1 ", 4, KDText::FontSize::Small), VerticalOffsetLayout::Type::Subscript, false), + new VerticalOffsetLayout(LayoutEngine::createStringLayout("n+1", 3, KDText::FontSize::Small), VerticalOffsetLayout::Type::Subscript, false), false); } if (m_type == Type::DoubleRecurrence) { m_definitionName = new HorizontalLayout( new CharLayout(name()[0], KDText::FontSize::Large), - new VerticalOffsetLayout(LayoutEngine::createStringLayout("n+2 ", 4, KDText::FontSize::Small), VerticalOffsetLayout::Type::Subscript, false), + new VerticalOffsetLayout(LayoutEngine::createStringLayout("n+2", 3, KDText::FontSize::Small), VerticalOffsetLayout::Type::Subscript, false), false); } }