Fixed additional slide text being written into a throwaway buffer

This commit is contained in:
Thorsten Sommer 2026-08-10 20:02:20 +02:00
parent e739468a85
commit 96cc4c4976
Signed by untrusted user who does not match committer: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -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);
}