[Libreoffice-bugs] [Bug 138924] New: Libre Writer does not properly execute the IMAGE anchor choice as coded in STYLES.XML

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Dec 15 03:55:51 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=138924

            Bug ID: 138924
           Summary: Libre Writer does not properly execute the IMAGE
                    anchor choice as coded in STYLES.XML
           Product: LibreOffice
           Version: 7.0.3.1 release
          Hardware: x86-64 (AMD64)
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: john4him at newhopetel.net

Description:
Every time I paste a photo into a text document, I have to manually change the
ANCHOR setting to “as-char” in order to keep the photo located in the proper
place.  The setting change does not carry over to the next photo…  you have to
change the setting for EACH photo.  Sadly, for many applications this renders
LIBRE WRITER pretty much useless.  There must be a dozen “fixes” and
“work-arounds” archived on-line.  All of the ones I’ve found are klutzy and
would not be needed if only a good programmer would spend an hour or so and
track down the source of this problem and apply a fix.  Better yet, give us the
option to choose which anchor we want to use as a default, although I realize
that is a bigger project.

Steps to Reproduce:
1. Edit the STYLES.XML and set image anchor type to "as-char"
2. Paste a photograph into a text document
3. Double click on the image;  you will see that the image anchor type is
"to=char", not "as-char". 

Actual Results:
see under OTHER INFORMATION

Expected Results:
I could not find how to attach a file to this bug report.  I have a document
that includes screen shots if anyone is interested I can send them.  Just let
me know.


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Bug:  Libre Writer    7.0.3.1  build d7547858d014d4cf69878db179d326fc3483e082
and 7.1 (Dev) both have the same problem.  This has been documented before, but
the suggested fixes do not work.  Thus I am running it up the flagpole again. 
This is a very important problem for many users.

Description:  When an image is inserted into text in a Libre Writer document,
formatting behavior is not what is expected.  To say that this is very
frustrating is a gross understatement, and has forced me and I suspect many
others to go back to MSWORD for our sanity.

The problem would be resolved if the default setting for IMAGE TYPE in
styles.xml would be set to ANCHOR AS-CHARACTER.  Instead, it always comes up
ANCHOR TO-CHARACTER.  There is no way for the user to change the default;  even
utilizing a template does not work.

The problem appears to have deep roots.  When first installed, the default
setting in the STYLES.XML code is set to ANCHOR TO-PARAGRAPH.  However, if you
create a document and paste in an image then double click on the image, the
setting shows up as ANCHOR TO-CHARACTER.  See below.



If you edit the XML and change the setting to ANCHOR AS-CHAR it makes zero
difference.  The image shows up the same and it does not actually exhibit the
AS-CHAR behavior.

Here is the XML after the change was made:




And here is the result shown by double clicking on the image:




It is exactly the same, no change.

I even made a pass using ANCHOR TO PARAGRAPH, same result.

SUMMARY:  Every time I paste a photo into a text document, I have to manually
change the ANCHOR setting to “as-char” in order to keep the photo located in
the proper place.  The setting change does not carry over to the next photo… 
you have to change the setting for EACH photo.  Sadly, for many applications
this renders LIBRE WRITER pretty much useless.  There must be a dozen “fixes”
and “work-arounds” archived on-line.  All of the ones I’ve found are klutzy and
would not be needed if only a good programmer would spend an hour or so and
track down the source of this problem and apply a fix.  Better yet, give us the
option to choose which anchor we want to use as a default, although I realize
that is a bigger project.

Thanks for reading.
John Lockridge

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20201215/be3923d5/attachment.htm>


More information about the Libreoffice-bugs mailing list