After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 169143 - dia: Unable to fill some assorted shapes
dia: Unable to fill some assorted shapes
Status: RESOLVED FIXED
Product: dia
Classification: Other
Component: shapes
0.94
Other All
: Normal normal
: 0.95
Assigned To: Alan Horkan
Dia maintainers
: 306186 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-03-03 22:16 UTC by Roland Stigge
Modified: 2006-01-28 16:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
the patch debian provided (3.26 KB, patch)
2005-03-05 15:18 UTC, Alan Horkan
committed Details | Review
Patch to fix some other Foreground backgroudn colour issues with shapes (11.42 KB, patch)
2005-03-05 16:08 UTC, Alan Horkan
committed Details | Review
Patch to clean up Footbridge, various Civil shapes, and laptop in network shapes (24.47 KB, patch)
2005-03-05 23:06 UTC, Alan Horkan
needs-work Details | Review
add laptop to network sheet (604 bytes, patch)
2005-03-05 23:12 UTC, Alan Horkan
rejected Details | Review

Description Roland Stigge 2005-03-03 22:16:51 UTC
Distribution/Version: Debian

A Debian user reported the following:

==============================================================================
"Left-Up Arrow", Heptagon, Five Point Star, Trapezoid, Right Angle and
Triangle assorted shapes can't be filled (ie. the selected background color
is ignored).

It looks like the problem is the style="fill: #ffffff" in polygon
definition (shapes that can be filled use style="fill: default" (or
style="fill: background" for arrow-turn-up.shape)). Replacing #ffffff by
default solves the problem.
==============================================================================

See patch at http://bugs.debian.org/297783
Comment 1 Roland Stigge 2005-03-03 22:30:25 UTC
I'm not sure if this is related to #93933. Probably not.
Comment 2 Alan Horkan 2005-03-04 00:17:00 UTC
this is directly related to bug #93933 which if fixed would avoid the need to
set these things up one shape at a time.  

You dont want really to replace it with "default" you want to replace the fill
with foreground and the line with background.  

Comment 3 Alan Horkan 2005-03-04 00:28:38 UTC
Comment from bug 169144
Just so you know the Associated shapes are only really a workaround and I'm more
than happy to see them die and be replaced by more powerful Drawing Tools.  
Comment 4 Lars Clausen 2005-03-05 12:04:10 UTC
The suggested solution of forcing all colors to be "foreground" and "background" is suboptimal, 
better to let the exporter choose.  The shapes mentioned in this bug should still be fixed.  Here's a 
bit of shell script that fixes all shapes in a directory.  I would have applied it to all shapes, except 
some of the map symbols at least have meaningfull colors.

sed -i 's/: #000000/: foreground/;s/: #ffffff/: background/;' *.shape
Comment 5 Alan Horkan 2005-03-05 12:13:26 UTC
I realise forcing the foreground and background is suboptimal but it is only
part of the solution.  Shape creaters will still want to be able to preset the
colours of their shapes.  That shell script will be extremely useful thanks.  
Comment 6 Alan Horkan 2005-03-05 15:18:53 UTC
Created attachment 38300 [details] [review]
the patch debian provided

it isn't as clear but using defualt rather than foreground and background works
fine so I'm attaching the patch supplied by Debian and it should probably be
used.
Comment 7 Alan Horkan 2005-03-05 16:08:56 UTC
Created attachment 38301 [details] [review]
Patch to fix some other Foreground backgroudn colour issues with shapes

I fixed two shapes in the Civil sheet and the whole Logic sheet.  
The connector in the logic sheet was a shade off black which I assumed was not
intentional and fixed it to use foreground for both the line and the fill.  

Thanks Lars that line of sed scripting was a huge help.  

Now if only I can figure out what's going on in bug 169107 and do the same for
the programmed objects?
Comment 8 Lars Clausen 2005-03-05 18:05:48 UTC
Patch 38300 did not apply cleanly, but I could fix it by hand, so I did.  Patch
38301 did apply, it's in there now.  Still many shapes left that may have
problems, fairly sure some of them do have problems.  Leaving open till they are
fixed.  The programmed objects is a whole different ball of wax.

larsrc@linux:~/dia/shapes> find . -name \*.shape | xargs grep -l \#ffffff
./Map/Isometric/Block7.shape
./Map/Isometric/Car1.shape
./Map/Isometric/Car2.shape
./Map/Isometric/Factory.shape
./Map/Isometric/FootBridge.shape
./Map/Isometric/OneWay.shape
./Map/Isometric/RedCar.shape
./network/diskette.shape
./network/laptop.shape
./network/plotter.shape
./network/router-symbol.shape
./network/switch-atm-symbol.shape
./network/switch-symbol.shape
./network/telephone.shape
./network/zip-disk.shape
larsrc@linux:~/dia/shapes> find . -name \*.shape | xargs grep -l \#000000
./Assorted/arrow-chevron.shape
./Assorted/arrow-down.shape
./Assorted/arrow-left-notched.shape
./Assorted/arrow-left-right-up.shape
./Assorted/arrow-left-right.shape
./Assorted/arrow-left.shape
./Assorted/arrow-pentagon.shape
./Assorted/arrow-quad.shape
./Assorted/arrow-right-notched.shape
./Assorted/arrow-right.shape
./Assorted/arrow-up-down-left.shape
./Assorted/arrow-up-down.shape
./Assorted/arrow-up.shape
./Assorted/circle-quarter.shape
./Assorted/circle.shape
./Assorted/cross-maltese.shape
./Assorted/cross-swiss.shape
./Assorted/diamond.shape
./Assorted/heart.shape
./Assorted/hexagon.shape
./Assorted/moon-quarter.shape
./Assorted/octagon.shape
./Assorted/parallelogram-horizontal.shape
./Assorted/parallelogram-vertical.shape
./Assorted/pentagon.shape
./Assorted/square.shape
./Assorted/star4.shape
./Assorted/star4curved.shape
./Assorted/star6.shape
./Assorted/star7.shape
./Assorted/star8.shape
./Assorted/star8curved.shape
./Assorted/star8sharp.shape
./Assorted/sun.shape
./Assorted/triangle-isoceles.shape
./Civil/civil_backflow_preventer.shape
./Civil/civil_basin.shape
./Civil/civil_frequency_converter.shape
./Civil/civil_motor.shape
./Civil/civil_preliminary_clarification_tank.shape
./Civil/civil_vertical_propeller.shape
./Map/Isometric/Block1.shape
./Map/Isometric/Block2.shape
./Map/Isometric/Block3.shape
./Map/Isometric/Block4.shape
./Map/Isometric/Block5.shape
./Map/Isometric/Block6.shape
./Map/Isometric/Block7.shape
./Map/Isometric/Car1.shape
./Map/Isometric/Car2.shape
./Map/Isometric/Factory.shape
./Map/Isometric/FootBridge.shape
./Map/Isometric/OneWay.shape
./Map/Isometric/RedCar.shape
./Map/Isometric/Roof1.shape
./Map/Isometric/Train1.shape
./Map/Isometric/Train2.shape
./Map/Isometric/Tree1.shape
./network/dat_external.shape
./network/diskette.shape
./network/laptop.shape
./network/mobile_phone.shape
./network/monitor.shape
./network/pc_bigtower.shape
./network/pc_desktop.shape
./network/pc_miditower.shape
./network/pc_minitower.shape
./network/router-symbol.shape
./network/speaker.shape
./network/speaker_amp.shape
./network/switch-atm-symbol.shape
./network/switch-symbol.shape
./network/telephone.shape
./network/workstation.shape
./network/zip-disk.shape
Comment 9 Lars Clausen 2005-03-05 18:09:11 UTC
Removing PATCH keyword as all current patches are applied.
Comment 10 Alan Horkan 2005-03-05 20:27:51 UTC
My Isometric Map shapes are finished and should not be changed with the possible
exception of the Footbridge shape where I seem to have forgotten to allow the
foreground colour to be changed.  

There might be some improvements small that could be made to the Network shapes
but they cotian more than two colours and i think  bug 169107 is the best way to
work with those characteristics.  

Please take a look at the network shapes and let me know what you think.  
In the meantime I'll see about making a patch for the Civil shapes and the
Isometric Map Footbridge (or I might just go home and eat dinner instead).  	
Comment 11 Alan Horkan 2005-03-05 23:06:48 UTC
Created attachment 38321 [details] [review]
Patch to clean up Footbridge, various Civil shapes, and laptop in network shapes
Comment 12 Alan Horkan 2005-03-05 23:12:07 UTC
Created attachment 38323 [details] [review]
add laptop to network sheet

Fixed Footbridge
Fixed up various Civil shapes (a "convert group to Path" feature in Dia
would've helped)
Fixed up the Laptop shape in Network 

Laptop shape I created years ago never got added to the network sheet.	
I cleaned it up to work nicely with background and foreground.	

(Normally it looks a bit like my old Dell laptop but if you invert the colours
it looks a lot more like an apple Powerbook, which worked out even better than
I planned)

Depending on what you think of the network sheet these last patches should be
enough to close this bug.  (Now I'm definately going home for food)
Comment 13 Lars Clausen 2005-03-06 08:35:27 UTC
Applied the color fixes.  Please in the future when making a patch on top of one
that's already applied make sure it's incremental, or patch will complain.  This
one I could sort out by hand, code patches are not so easy.
The laptop is already in the, called Laptop PC.  Which is of course a snap at
Mac users, but hey.
Of the network shapes, the following IMHO could use default colors:

WAN connection
WAN link
mobile telephony cell

Odd.  Some of the Assorted shapes still have #000000, but use foreground colors
right.  
Comment 14 Alan Horkan 2005-03-06 17:55:13 UTC
Sorry about the bad patches, now that I'm getting a bit more practice I hope
that will happen less often (and hopefully not at all).  

Wan connection works fine (or worked correctly in Dia 0.94.  flash.shape from
CVS looks fine to me)
Wan Link doesn't.  (not even sure which shape file this is in, having difficulty
finding it)
I wasn't sure if Mobile Telephony Cell should be filled, it is currently empty
but if you want it, I'll change it. 

Comment 15 Hans Breuer 2005-05-15 17:01:32 UTC
Comment on attachment 38323 [details] [review]
add laptop to network sheet

It is there since almost two years (or am I missing something?):
http://cvs.gnome.org/viewcvs/dia/sheets/network.sheet.in?r1=1.4&r2=1.5
Comment 16 Hans Breuer 2005-05-15 17:27:07 UTC
Comment on attachment 38321 [details] [review]
Patch to clean up Footbridge, various Civil shapes, and laptop in network shapes

If this isn't alread applied it needs work to apply cleanly. (The first change
already is in cvs)
Comment 17 Hans Breuer 2005-06-10 16:10:13 UTC
*** Bug 306186 has been marked as a duplicate of this bug. ***
Comment 18 Hans Breuer 2006-01-28 16:30:21 UTC
Just checked with current cvs. All assorted shapes respect the color 
settings now. If there are remaining issues discussed here separate
bug reports should be filled for them.