Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

Commit 792c48c

Browse files
authored
Fix export (pt 1) (#104)
* Fix expanded storage flush after XML stream ends with cached output stream * Remove debug log * Bump version
1 parent 21ce62e commit 792c48c

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v0.2.1
1+
v0.2.2

libreoffice-core/desktop/wasm/worker.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,6 @@ const handler: DocumentMethodHandler<Document> = {
448448
const visibleArea = visibleAreas[ref];
449449
if (visibleArea && visibleArea.widthTwips !== widthTwips) {
450450
visibleArea.widthTwips = widthTwips;
451-
console.log({widthTwips});
452451
if (visibleArea.heightTwips && visibleArea.topTwips) {
453452
doc.setClientVisibleArea(viewId, 0, visibleArea.topTwips, visibleArea.widthTwips, visibleArea.heightTwips);
454453
}

libreoffice-core/sax/source/tools/fastserializer.cxx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include <rtl/math.h>
2424
#include <sal/log.hxx>
2525
#include <comphelper/processfactory.hxx>
26+
#include <comphelper/storagehelper.hxx>
2627

2728
#include <cassert>
2829
#include <optional>
@@ -310,6 +311,10 @@ namespace sax_fastparser {
310311
{
311312
assert(mbMarkStackEmpty && maMarkStack.empty());
312313
maCachedOutputStream.flush();
314+
// MACRO: The cached output stream doesn't actually flush, so the string content is not resized {
315+
if (comphelper::OStorageHelper::IsExpandedStorage())
316+
getOutputStream()->flush();
317+
// MACRO: }
313318
}
314319

315320
void FastSaxSerializer::writeId( ::sal_Int32 nElement )

0 commit comments

Comments
 (0)