Fixed escape in empty paint editor text field throwing error

This commit is contained in:
Nathan Dinsmore 2014-06-17 16:15:59 -04:00
parent 5132c96eb2
commit 95f7db3bab

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);
}