Bug 90317 - Layout glitch: under certain conditions, this Converted2 page style change to landscape isn't seen on fileopen (until saved)
Summary: Layout glitch: under certain conditions, this Converted2 page style change to...
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx
Depends on:
Blocks: DOCX-Page
  Show dependency treegraph
 
Reported: 2015-03-29 07:06 UTC by John
Modified: 2024-07-24 12:55 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
booking form; changes from portrait to landscape (137.38 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2015-03-29 07:06 UTC, John
Details
ANSTO_GroupTourBooking_ConfirmationForm_2013.pdf: how it looks in LO5.3beta1 (187.40 KB, application/x-msdownload)
2016-12-05 06:00 UTC, Justin L
Details
ANSTO_reduced.docx: used MSO2013 to make a fairly minimal example document (18.79 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2016-12-05 14:47 UTC, Justin L
Details
debugging code and workaround to give a senior developer a good start (7.78 KB, patch)
2016-12-08 17:19 UTC, Justin L
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John 2015-03-29 07:06:01 UTC
Created attachment 114439 [details]
booking form; changes from portrait to landscape

attached file changes from portrait to landscape at page 3.  Word copes, but libreOffice writer does not notice.  Annoying but easily worked around.
Comment 1 A (Andy) 2015-03-29 10:09:11 UTC
Reproducible with LO 4.4.1.2, Win 8.1, changed the importance


Furthermore, there are several other compatibility issues:

Page 1: 
- Header is not greyed and has no frame
- Cell heights are not kept
- Background colour of the input fields is red instead of grey
- Size of tick fields (in "Special Needs") is larger

Page 2:
- Check symbol for "Full name" - "Adults 18 years & over" is missing
- Wrong check symbols for "Date of birth" - "Under 18 years of age", "School students" - "Full name" & "Residential address"

Page 3 - 5:
- Wrong layout
- Header is completely missing
- Background colour of the input fields is red instead of grey
Comment 2 Julien Nabet 2015-03-30 19:19:54 UTC
Andy: please stick to the rule one problem, one bug (except if it's exactly the same domain, for example if a dropdown lacks 2 values, no need to create 2 bugtrackers). Indeed, it'd be quite complicated to deal multiple bugs tracker.
Comment 3 A (Andy) 2015-03-30 19:59:24 UTC
(In reply to Julien Nabet from comment #2)
> Andy: please stick to the rule one problem, one bug (except if it's exactly
> the same domain, for example if a dropdown lacks 2 values, no need to create
> 2 bugtrackers). Indeed, it'd be quite complicated to deal multiple bugs
> tracker.

@Julien: Sorry, of course you are right.  I will see if I can help to open further bug reports for the other issues (if not already opened).
Comment 4 Matthew Francis 2015-04-06 01:17:31 UTC
The reported issue (comment 0) also occurs on Linux in LO 3.3.0

-> Version: Inherited from OOo
Comment 5 tommy27 2016-04-16 07:23:05 UTC Comment hidden (obsolete)
Comment 6 Justin L 2016-12-05 06:00:18 UTC
Created attachment 129308 [details]
ANSTO_GroupTourBooking_ConfirmationForm_2013.pdf: how it looks in LO5.3beta1

main form still showing in portrait instead of landscape mode in LO5.3beta1.
This document took a very long time to load.  Most of the other problems mention seem to be resolved.
Comment 7 Justin L 2016-12-05 14:47:31 UTC
Created attachment 129323 [details]
ANSTO_reduced.docx: used MSO2013 to make a fairly minimal example document

I'm not sure what is causing the page orientation problem here - all sorts of things are possible, but the import logic seems to be fine - seems to be a layout problem instead.

Removing the table on the first page "fixes" the portrait orientation. So does removing any of the empty paragraphs on the first page.  So does removing a row from the second table. So does saving as .odt (requires 5.3).
Comment 8 Justin L 2016-12-08 17:19:51 UTC
Created attachment 129405 [details]
debugging code and workaround to give a senior developer a good start

This is related to the layout cache guessing that 25 rows that fit on the second page (in addition to more than 25 paragraphs on the first page).  WHY the incorrect assumptions prevented successful layout in the end I couldn't figure out.  I give up.
Comment 9 QA Administrators 2017-12-09 11:08:34 UTC Comment hidden (obsolete, spam)
Comment 10 Justin L 2020-06-17 19:20:05 UTC
Still repro 7.1 with comment 7's reduced example.
The original document seems fixed / switched to Landscape at page 3 (using my build of master and also bibisect-7.1 oldest, but not with bibisect-7.0 master).
Comment 11 Justin L 2020-06-17 19:37:19 UTC
Multi-page (side by side) view seems to make a difference. That explains why I didn't see it in bibisect 7.0.  I see it in multi-page mode.
Comment 12 Justin L 2020-06-18 06:49:55 UTC
Bug 104546 - layout glitch: landscape page rendered as portrait under certain conditions - is probably related.
Comment 13 Justin L 2020-07-23 11:20:03 UTC
Repro 7.1+
bug 104546 has the same portrait/landscape layout problem with under different conditions, so I am not marking this as a duplicate.

Switching to web view, and then back to normal "fixes" it.
Comment 14 QA Administrators 2022-07-24 03:32:03 UTC Comment hidden (obsolete)
Comment 15 Timur 2022-07-25 12:32:15 UTC
In 7.5+ as Justin explained. 
Original attachment 114439 [details] opening landscape OK (8 pages) if last view was Single.
Reduced attachment 129323 [details] opening NOK regardless.
Comment 16 Justin L 2024-07-24 12:55:32 UTC
ANSTO_reduced.docx fixed in 7.6 with commit ce0b9f3eb3f57f57a2315e099a0093c33987e6ca
Author: Justin Luth on Mon Feb 13 17:47:36 2023 -0500
    tdf#153602 writerfilter: clear isDummyPara after processing table.