Issue 30922

Summary: Using 'Fill Format" mode, style must be re-selected eash time
Product: Draw Reporter: bryancole <bryan.cole>
Component: uiAssignee: AOO issues mailing list <issues>
Status: CONFIRMED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: issues, lalithramesh312, rb.henschel
Version: OOo 1.1.2   
Target Milestone: AOO Later   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---

Description bryancole 2004-06-30 12:54:29 UTC
As I understand it, the point of the "Fill Format" (or 'Bucket Fill') mode, in
Stylist, is to allow the user to rapidly apply a style to many objects?

However, in Draw, each time the Bucket Fill is used to apply a style to an
object, the current style is deselected. Thus, the user must re-select the style
from Stylist before applying it to the next object. This rendered Bucket Fill
mode largely pointless.

A enhancement would be "don't deselect current style after each application of
Bucket Fill"
Comment 1 wolframgarten 2004-07-01 08:33:56 UTC
I have no problem with this. What I do:
Setup a new style for testing.
Select the style in the stylist.
Click on the bucket tool (Fill Format Mode).
Click with the bucket cursor on each object I want the new style to be applied to.
I do not have to re-select the style in between two objects, just click on them
and the new style is applied. Did yopu use it in the same way? 
Comment 2 bryancole 2004-07-01 15:22:47 UTC
Yup, the behavior you describe is how I want it to work. Only it doesn't!

I perform exactly the following actions (using OOo-1.1.2 on linux, FC2):

1) Open a new Drawing document
2) Create a new custom-style (say with a different fill-color)
3) Create some objects, a bunch of squares say
4) Select the new style and click on "Bucket Fill"
5) Click on the first object I want to apply the new style to ...

... and as soon as that object is redrawn with the new style, the new style is
deselected from the Stylist and the Default style selected in it's place
(without any other action on my part). Now, to apply my style to other objects,
I must re-select it in stylist.

If this behaviour is not by design, then it must be a bug.

I did find a work-around, however: If I hold down <ctrl> before clicking on an
object with the Bucket Fill tool, that object and it's new style remain selected
after the style is applied. Clicking on other objects applies the new style to
them as desired (although each object becomes selected while holding down <ctrl>
but this isn't a problem. 

OK. A tiny bit more info: It is always the "previously-selected" style that the
stylist returns to, after clicking Bucket-Fill on an object. If I apply the new
style to the first object manually (by clicking on the style in Stylist, rather
than using the bucket-fill too), then Bucket-Fill works correctly on subsequent
objects. 

Thus, to reproduce the bug, start with a set of objects all using Style-A.
Select Style-B from stylist and use Bucket Fill is apply it to the objects.

Comment 3 bryancole 2004-07-01 15:30:35 UTC
One other thing which I wonder if it's related: The Fedora-Core-2 (redhat)
version of OO-Draw is quite badly broken. Using the FC2 version of OpenOffice,
it is impossible to select any other style than "Default" from Stylist, as the
selected style immediately jumps right back to Default. All the while the
Stylist windows flickers, indicating some bug with the focus control in openoffice.

I'm not sure if this has been reported previously
Comment 4 wolframgarten 2004-07-06 07:37:56 UTC
Reassigned to Christian. Do you have an idea how this behaviour can happen?
Comment 5 christian.guenther 2004-08-03 10:46:37 UTC
set to new and change the target
Comment 6 christian.guenther 2004-08-03 10:50:46 UTC
I can reproduce the bug.
Please have a look.
Comment 7 Regina Henschel 2006-10-21 17:41:58 UTC
For me (WinXP) it works in OOo1.1.5, but is broken again in version 2.0.4
Comment 8 Lalith Ramesh 2015-08-29 19:35:10 UTC
(In reply to bryancole from comment #2)
> Yup, the behavior you describe is how I want it to work. Only it doesn't!
> 
> I perform exactly the following actions (using OOo-1.1.2 on linux, FC2):
> 
> 1) Open a new Drawing document
> 2) Create a new custom-style (say with a different fill-color)
> 3) Create some objects, a bunch of squares say
> 4) Select the new style and click on "Bucket Fill"
> 5) Click on the first object I want to apply the new style to ...
> 
> ... and as soon as that object is redrawn with the new style, the new style
> is
> deselected from the Stylist and the Default style selected in it's place
> (without any other action on my part). Now, to apply my style to other
> objects,
> I must re-select it in stylist.
> 
> If this behaviour is not by design, then it must be a bug.
> 
> I did find a work-around, however: If I hold down <ctrl> before clicking on
> an
> object with the Bucket Fill tool, that object and it's new style remain
> selected
> after the style is applied. Clicking on other objects applies the new style
> to
> them as desired (although each object becomes selected while holding down
> <ctrl>
> but this isn't a problem. 
> 
> OK. A tiny bit more info: It is always the "previously-selected" style that
> the
> stylist returns to, after clicking Bucket-Fill on an object. If I apply the
> new
> style to the first object manually (by clicking on the style in Stylist,
> rather
> than using the bucket-fill too), then Bucket-Fill works correctly on
> subsequent
> objects. 
> 
> Thus, to reproduce the bug, start with a set of objects all using Style-A.
> Select Style-B from stylist and use Bucket Fill is apply it to the objects.

There's similar behavior in OpenOffice Writer.  If you select a style while in Fill Format mode, and then try to make changes to the style (like changing the font or text color), the selected style reverts to "Default".  The only way to get Writer to remember your changes is to create a new style.
Comment 9 Marcus 2017-05-20 10:45:27 UTC
Reset the assignee to the default "issues@openoffice.apache.org".