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

            Bug ID: 151151
           Summary: Watermark z-index inconsistency
           Product: LibreOffice
           Version: 7.4.0.3 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 182647
  --> https://bugs.documentfoundation.org/attachment.cgi?id=182647&action=edit
shows the issues listed in the initial comment

The precedence of the layers 
- of the text, 
- the shapes and 
- the watermark 
is inconsistent. Three years ago, @Thomas Lendo has proposed a work-around in
Bug #127331 but it doesn't work anymore. Moreover, it highlights some other
bugs.

In order to see the problem, do these steps:
- type a page of random text ("asdf asdf ..."")
- Insert -> Shape -> Basic Shapes -> Rectangle -> Escape
(Shape 1 appears in the Navigator, this is good)
- Format -> Watermark -> Text=CONFIDENTIAL -> OK
(the watermark is _behind_ the object, YUCK)
(in the Navigator, 10 PowerPlusWatermarkObject appears (9 grey and 1 black):
???)
- double-click on the black one
(the top grey one gets selected instead of the black one: ???)
- Format -> Arrange -> To Foreground -> Escape
(the watermark comes in front of the shape: Hooray)
- Insert -> Shape -> Basic Shapes -> Circle -> Escape
(the circle comes _in_front_of_ the watemark: ???)
- double-click on the black PowerPlusWatermarkObject in the navigator
- toggling between "Format" -> "Arrange" -> "To Foreground" and "Format" ->
"Arrange" -> "To Background" toggles between T-R-W-C and W-T-R-C, instead of
T-R-C-W and W-T-R-C (letters mean Text, Watermark, Rectangle, Circle). I think
it should move the Watermark to back and to the front.

Note: I attach demo.odt with which you can see the problem in a slightly
different way because double click the Drawing Object of the watermark in the
Navigator does not work (???):
- open demo.odt
- click the circle
- press Delete
- click the rectangle
- press Tab (this focuses the watermark object)
- Format -> Arrange -> Bring to front -> Escape (To Background and To
Foreground don't work)
- Insert -> Shape -> Basic Shapes -> Circle -> Escape
(You can see that the watermark is not behind everything, nor in front of
everything. It is somewhere between the layers of the shapes.)
- File -> Save (Z-inconsistency is still there)
- File -> Reload (Z-inconsistency is confused ever further: watermark goes
behind the layers of the shapes but remains in front of the text.)

To summarise the issues:
1. the watermark should be either behind or in front of everything, not
somewhere between them (Which one? I comment my opinion into Bug #127331.)
2. Why are there 9 grey "PowerPlusWatermarkObject" items beyond the one black?
3. Why do the grey ones not work and clicking the black one focuses a grey one?
4. Why does toggling between "To Foreground" and "To Background" not toggle the
position of the watermark between behind and in front of everything? 
5. Why can't I click the "PowerPlusWatermarkObject" after reloading the
document?
6. Why does "To Foreground" not work after reloading the document if it did
work beforehand?
7. Why is the z-index of the shapes versus that of the watermark reordered
after save and reload?

In a nutshell, instead of this fragile z-index handling, it would be much
cleaner to have a pair of radiobuttons in the Format -> Watermark dialog:
(o) as a stamp, ie. above everything else
(o) as a background, ie. behind everything else

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to