https://bugs.freedesktop.org/show_bug.cgi?id=69524

          Priority: medium
            Bug ID: 69524
          Assignee: [email protected]
           Summary: EDITING  Creating new style from selected graphic,
                    adds properties for dimensions
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: [email protected]
          Hardware: Other
            Status: NEW
           Version: 3.3.0 release
         Component: Writer
           Product: LibreOffice

To reproduce:

- writer document with some text
- insert graphic and change the border setting
- put focus in box Apply Style, where name 'Graphics' is shown, and type new
name: 'Test1'
- set focus in text of document and insert another grafic, with different
dimensions then the first one.
- while that graphic is selected, select 'Test1' from the box Apply Style

  > not only border is added, but also the size is changed!

I was pretty sure that somewhere  in the past, this did not happen. And found
an old document that confirms that.

Grabbed the info from the styles.xml
"_5f_Icoontje" is the old one.
"_5f_KaderMagentaGrijs" is the one I made now in 4.1.1.2.



<style:style style:name="_5f_Icoontje" style:display-name="_Icoontje"
style:family="graphic" style:parent-style-name="Graphics">
    <style:graphic-properties text:anchor-type="paragraph" svg:x="0cm"
svg:y="0cm" style:wrap="dynamic" style:number-wrapped-paragraphs="no-limit"
style:wrap-contour="false" style:vertical-pos="top"
style:vertical-rel="paragraph-content" style:horizontal-pos="right"
style:horizontal-rel="paragraph" fo:padding="0.049cm" fo:border="0.51pt solid
#000080" style:shadow="none"/></style:style>


<style:style style:name="_5f_KaderMagentaGrijs"
style:display-name="_KaderMagentaGrijs" style:family="graphic"
style:parent-style-name="Graphics">
    <style:graphic-properties svg:width="4.657cm" fo:min-height="5.741cm"     
    text:anchor-type="paragraph" svg:x="6.172cm" svg:y="0cm"
style:wrap="dynamic" style:number-wrapped-paragraphs="no-limit"
style:wrap-contour="false" style:vertical-pos="top"
style:vertical-rel="paragraph-content" style:horizontal-pos="center"
style:horizontal-rel="paragraph" fo:padding="0.049cm" fo:border="0.54pt solid
#ff33ff" style:shadow="none"/></style:style>


Difference:
svg:width="4.657cm" fo:min-height="5.741cm"

(Also for Anchor type a vallue is added: svg:x="6.172cm"  - no idea if that
cause a problem)


I see the problem already in 3.3.0. The style icoontje (properties above) has
been made somewhere in 2009 or earlier...

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to