From 96cc4c4976567fba61f0ef77b022c99e435f4858 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Mon, 10 Aug 2026 20:02:20 +0200 Subject: [PATCH] Fixed additional slide text being written into a throwaway buffer --- app/MindWork AI Studio/Tools/SlideTextContent.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/MindWork AI Studio/Tools/SlideTextContent.cs b/app/MindWork AI Studio/Tools/SlideTextContent.cs index 0a657559..c9fd8d90 100644 --- a/app/MindWork AI Studio/Tools/SlideTextContent.cs +++ b/app/MindWork AI Studio/Tools/SlideTextContent.cs @@ -4,5 +4,10 @@ namespace AIStudio.Tools; public sealed class SlideTextContent(string textContent) : ISlideContent { - public StringBuilder Text => new(textContent); + // + // One builder per slide, created once: an expression-bodied property would hand out a fresh + // builder on every access, so appending further text to a slide would write into a throwaway + // object and the text would never reach the slide. + // + public StringBuilder Text { get; } = new(textContent); } \ No newline at end of file