mirror of
https://github.com/scratchfoundation/scratch-flash.git
synced 2024-12-04 21:21:06 -05:00
Fixed escape in empty paint editor text field throwing error
This commit is contained in:
parent
5132c96eb2
commit
95f7db3bab
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue