summaryrefslogtreecommitdiff
path: root/vcl/source/app/svapp.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/app/svapp.cxx')
-rw-r--r--vcl/source/app/svapp.cxx12
1 files changed, 9 insertions, 3 deletions
diff --git a/vcl/source/app/svapp.cxx b/vcl/source/app/svapp.cxx
index 8bfcb5e03d66..b3a63cd05a46 100644
--- a/vcl/source/app/svapp.cxx
+++ b/vcl/source/app/svapp.cxx
@@ -1750,11 +1750,17 @@ void dumpState(rtl::OStringBuffer &rState)
vcl::Window *pWin = Application::GetFirstTopLevelWindow();
while (pWin)
{
- tools::JsonWriter props;
- pWin->DumpAsPropertyTree(props);
+ tools::JsonWriter aProps;
+ pWin->DumpAsPropertyTree(aProps);
rState.append("\n\tWindow: ");
- rState.append(props.finishAndGetAsOString());
+ OString aPropStr = aProps.finishAndGetAsOString();
+ if (aPropStr.getLength() > 256)
+ {
+ rState.append(aPropStr.subView(0, 256));
+ rState.append("...");
+ } else
+ rState.append(aPropStr);
pWin = Application::GetNextTopLevelWindow( pWin );
}