rebootcode / svg-edit

Automatically exported from code.google.com/p/svg-edit
MIT License
0 stars 0 forks source link

Text tool surprisingly changes colors selected #957

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Visit http://svg-edit.googlecode.com/svn/trunk/editor/svg-editor.html
2. Note current fill color is red.
3. Select text tool, click in canvas and add some text.
4. Note current fill color is now black.

What is the expected output? What do you see instead?

The fill color should not change unless I intentionally change it.

In what browser did you experience this problem? (ALL, Firefox, Opera, etc)

Apparently all - verified in Firefox, Safari, Chrome.

In what version of SVG-edit does the problem occur? (Latest trunk, 2.5.1,
etc)

Trunk.

Original issue reported on code.google.com by bgoldow...@gmail.com on 7 May 2012 at 7:58

GoogleCodeExporter commented 8 years ago
Note, same issue with selecting a line or freehand - these types of elements 
don't usually define a fill color, so it comes back as 'none' and is defaulted 
to black.

Original comment by bgoldow...@gmail.com on 8 May 2012 at 7:53

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
svg-edit v.2.6
line 2686 in svgcanvas.js

"fill": cur_text.fill
to
"fill": cur_shape.fill !== 'none' ? cur_shape.fill : cur_text.fill

it will work:)

Original comment by encore.i...@gmail.com on 16 Apr 2014 at 10:41