mirror of
https://github.com/scratchfoundation/scratch-flash.git
synced 2024-12-04 21:21:06 -05:00
Merge pull request #288 from nathan/escape-empty-text
Fixed escape in empty paint editor text field throwing error
This commit is contained in:
commit
2e92451233
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