Issue 128307 - Picture toolbar, icons for flipping - misimplementation
Summary: Picture toolbar, icons for flipping - misimplementation
Status: UNCONFIRMED
Alias: None
Product: Writer
Classification: Application
Component: ui (show other issues)
Version: 4.1.7
Hardware: PC Windows 7
: P5 (lowest) Normal (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-26 04:54 UTC by Czesław Wolański
Modified: 2020-02-26 05:03 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Writer document for tests (88.04 KB, application/vnd.oasis.opendocument.text)
2020-02-26 04:54 UTC, Czesław Wolański
no flags Details
Writer and Draw comands (793.70 KB, image/jpeg)
2020-02-26 04:59 UTC, Czesław Wolański
no flags Details
Screenshots for Test no. 1 (200.71 KB, image/jpeg)
2020-02-26 05:00 UTC, Czesław Wolański
no flags Details
Screenshot for Test no. 2 (177.33 KB, image/jpeg)
2020-02-26 05:01 UTC, Czesław Wolański
no flags Details
Screenshot of custom toolbar in Draw (73.22 KB, image/jpeg)
2020-02-26 05:01 UTC, Czesław Wolański
no flags Details
Draw file for tests (40.87 KB, application/vnd.oasis.opendocument.graphics)
2020-02-26 05:03 UTC, Czesław Wolański
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Czesław Wolański 2020-02-26 04:54:35 UTC
Created attachment 86854 [details]
Writer document for tests

In AOO Writer open attached file "testFile". You shall see two identical images: one at the top of page, second one at its bottom.

If that top image is not selected, do it. Picture toolbar will appear.


--------------------- TEST no. 1 ---------------------

Steps to reproduce:

1. Click "Flip Horizontally" icon
   You will notice that image is flipped horizontally
   and icon remains SELECTED.

2. Click "Flip Vertically" icon
   You will notice that image is flipped vertically
   and icon remains SELECTED. 
   
So we have now two icons selected. Notice that both toolbar and menu show the same information
(see attachment called Test_1).

Something here is VERY WRONG. Neither of these icons should act like this. It seems they work in toggle mode.
(pushbutton, Uno API > UnoControlButtonModel, property .Toggle).
I run some tests in AOO Draw and spotted a difference.
Started to dig dipper into this bug.

You will find the result of my research below.


Behaviour of two "icons" is ABSOLUTELY WRONG for at least two reasons:

1. Flip horizontally/vertically should - as any software for image 
   processing would do - perform a simple operation. By toggling
   the state of icon, AOO Writer does something more.
   
   -------------------- TEST no. 2 ----------------------------------

   (see my attachment called Test_2)

   (a) start from scratch i.e. in situation when neither "Flip 
       Horizontally" nor "Flip Vertically" is selected 
       For this you can use second image located at the bottom of page.

   (b) click "Flip Vertically" icon
       Vertical flipping takes place.
  
   (c) invert image
       Click icon "Magic Wand" on the Picture toolbar.
       In "Graphic Filter" window click icon "Invert".
       Notice that image was not only inverted.

   (d) undo this operation
       click "Undo" icon on Standard toolbar OR Edit > Undo
 
   You surely will notice that image has NOT returned to state
   in point (b) but to state in point (a). You will see same result
   if in point (b) icon "Flip Horizontally" is choosen.
                
   VERY BAD indeed.
   
2. In AOO Draw there are four commands available in dialog
   "Add Command":
     "Flip Horizontally","Flip Vertically",
     "Horizontally" and "Vertically". 
   I have created a custom toolbar "myToolbar". It contains all of them.
   (see attached image "myToolbar")
   I have attached .odg file "testFile_1"
   That toolbar is stored therein.

   If not visible, choose: View > Toolbars > myToolbar
    
   In tests: no. 1 and no. 2 above all icons behave CORRECTLY.
   Why? Because in contrast to AOO Writer they do not remain selected
   once clicked.

  
  
And now take a look at juxtaposition of commands available
in dialog "Add command" in AOO Writer and AOO Draw
(see attachment called "Juxtaposition")

Tools > Options > Customize > tabpage Toolbar > Add

In AOO Draw: commands: "Horizontally" & "Vertically" are in Category 
             "Modify".
             Notice that icons are NOT available.
             Notice that correct description is given.

             commands "Flip Vertically" and "Flip Horizontally"
             are in category "Format"
             Notice that icons are available.
             Notice lacking description for both commands.


In AOO Writer: commands "Flip Horizontally" and "Flip Vertically"
               are in category "Format"
               Notice that icons are available.
               Notice mistake in description for both commands.

               In category "Modify" there is neither "Horizontally" nor
               "Vertically" command.



 

RECAPITULATION -------------------------------------------------------

1. Inconsistency between AOO Writer and AOO Draw is evident and not 
   trivial.

2. Behaviour of "Flip Horizontally" and "Flip Vertically" icons
   in AOO Writer is ABSOLUTELY WRONG. Their counterparts in AOO Draw
   behave as expected.


Please take care of this. As of now it defies logic.
Spoils consistency between AOO components.
Is misleading and annoying too.
Comment 1 Czesław Wolański 2020-02-26 04:59:24 UTC
Created attachment 86855 [details]
Writer and Draw comands
Comment 2 Czesław Wolański 2020-02-26 05:00:23 UTC
Created attachment 86856 [details]
Screenshots for Test no. 1
Comment 3 Czesław Wolański 2020-02-26 05:01:01 UTC
Created attachment 86857 [details]
Screenshot for Test no. 2
Comment 4 Czesław Wolański 2020-02-26 05:01:49 UTC
Created attachment 86858 [details]
Screenshot of custom toolbar in Draw
Comment 5 Czesław Wolański 2020-02-26 05:03:04 UTC
Created attachment 86859 [details]
Draw file for tests