Bug 149733 - Identical frames with identical style definitions; one is rotatable & other is not; Only difference is /where/ the style is defined
Summary: Identical frames with identical style definitions; one is rotatable & other i...
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.3.4.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-26 05:04 UTC by Jambunathan K
Modified: 2022-06-26 05:14 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
bug149733.odt: Problematic ODT file (19.46 KB, application/vnd.oasis.opendocument.text)
2022-06-26 05:09 UTC, Jambunathan K
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jambunathan K 2022-06-26 05:04:51 UTC

    
Comment 1 Jambunathan K 2022-06-26 05:08:43 UTC
# #+ODT_PREFERRED_OUTPUT_FORMAT: pdf

#+odt_prettify_xml: 

#+ATTR_ODT: :width 5 (inner-frame :style "FrameStyleAuto")
#+begin_textbox
This uses style *=FrameStyleAuto=* from *=content.xml=*. /*This  is rotatable*/.
#+end_textbox

#+ATTR_ODT: :width 5 (inner-frame :style "FrameStyleCustom")
#+begin_textbox
This uses style *=FrameStyleCustom=* from *=styles.xml=*. /*This  is NOT rotatable*/.
#+end_textbox

The =XML= definitions of *=FrameStyleCustom=* and *=FrameStyleAuto=*
are identical, and looks as below (save for the =style:style-name=)

#+begin_src nxml
<style:style style:name="FrameStyleAuto"
             style:family="graphic">
  <style:graphic-properties draw:wrap-influence-on-position="once-concurrent"
                            style:horizontal-pos="center"
                            style:horizontal-rel="paragraph-content"
                            style:vertical-pos="top"
                            style:vertical-rel="paragraph"
                            style:wrap="none"
                            text:anchor-type="char" />
</style:style>
#+end_src

My Question is

#+begin_quote
Above example suggests that LibreOffice chooses between a *=textbox=*
and *=a shape=* based *NOT ON /the XML definition/ of the style*, but
*on /the type/ ---/custom/ or /automatic/---of the style* ... This
observed behaviour is very quriky and suspicious ...
#+end_quote

Other issues:

- Other problems :: Why does ~=style:wrap="none"=~ not taking effect
  for the textbox above?
  
- Fill color of the style is blue :: Where does it come from?

  - The *=style:default-style=* for /graphics/ does not specify a color

  - While examining *=Tools -> Options -> LibreOffice -> Application
    Colors=*, none of the colors come closer to the fill color.

#+begin_src nxml
<style:default-style style:family="graphic">
 <style:graphic-properties draw:end-line-spacing-horizontal="0.283cm"
                           draw:end-line-spacing-vertical="0.283cm"
                           draw:shadow-offset-x="0.3cm"
                           draw:shadow-offset-y="0.3cm"
                           draw:start-line-spacing-horizontal="0.283cm"
                           draw:start-line-spacing-vertical="0.283cm"
                           style:flow-with-text="false" />
 <!-- style:paragraph-properties and style:text-properties are snipped -->
</style:default-style>
#+end_src

#+ATTR_ODT: :target "automatic_styles"
#+begin_src nxml
<style:style style:name="FrameStyleAuto"
             style:family="graphic">
  <style:graphic-properties draw:wrap-influence-on-position="once-concurrent"
                            style:horizontal-pos="center"
                            style:horizontal-rel="paragraph-content"
                            style:vertical-pos="top"
                            style:vertical-rel="paragraph"
                            style:wrap="none"
                            text:anchor-type="char" />
</style:style>
#+end_src

#+ATTR_ODT: :target "extra_styles"
#+begin_src nxml
<style:style style:name="FrameStyleAuto"
             style:family="graphic">
  <style:graphic-properties draw:wrap-influence-on-position="once-concurrent"
                            style:horizontal-pos="center"
                            style:horizontal-rel="paragraph-content"
                            style:vertical-pos="top"
                            style:vertical-rel="paragraph"
                            style:wrap="none"
                            text:anchor-type="char" />
</style:style>
#+end_src
Comment 2 Jambunathan K 2022-06-26 05:09:52 UTC
Created attachment 180967 [details]
bug149733.odt:  Problematic ODT file
Comment 3 Jambunathan K 2022-06-26 05:13:52 UTC
Please ignore this  bug report.  I copy-pasted wrong text in description.  I will close this bug and open a fresh bug report.

Sorry for the confusion.