Woops - make italic/bold undo-able
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@272 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
09b0e8bd4f
commit
312d2766c5
|
@ -1377,7 +1377,7 @@ function SvgCanvas(c)
|
||||||
if (selected != null && selected.tagName == "text" &&
|
if (selected != null && selected.tagName == "text" &&
|
||||||
selectedElements[1] == null)
|
selectedElements[1] == null)
|
||||||
{
|
{
|
||||||
selected.setAttribute("font-weight", b ? "bold" : "normal");
|
this.changeSelectedAttribute("fill-weight", b ? "bold" : "normal");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1396,7 +1396,7 @@ function SvgCanvas(c)
|
||||||
if (selected != null && selected.tagName == "text" &&
|
if (selected != null && selected.tagName == "text" &&
|
||||||
selectedElements[1] == null)
|
selectedElements[1] == null)
|
||||||
{
|
{
|
||||||
selected.setAttribute("font-style", i ? "italic" : "normal");
|
this.changeSelectedAttribute("font-style", i ? "italic" : "normal");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue