Merge pull request #288 from nathan/escape-empty-text

Fixed escape in empty paint editor text field throwing error
This commit is contained in:
Shane M. Clements 2014-06-18 11:57:08 +02:00
commit 2e92451233

View file

@ -657,7 +657,7 @@ package svgeditor {
setToolMode((this is SVGEdit) ? 'select' : 'bitmapSelect');
// If the tool wasn't canceled and an object was created then select it
if(nextObject) {
if (nextObject && nextObject.parent) {
var s:Selection = (nextObject is Selection ? nextObject: new Selection([nextObject]));
(currentTool as ObjectTransformer).select(s);
}