budiadiono / evoluspencil

Automatically exported from code.google.com/p/evoluspencil
0 stars 0 forks source link

Can't paste due to a SYSTEM ERROR! * this.canvas.currentController is null error #367

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Often when I select multiple object (either with the mouse or ctrl + click) and 
then I try to copy paste (to duplicate them) it doesn't work and the error I 
get is this:

SYSTEM ERROR! * this.canvas.currentController is null at: 
chrome://pencil/content/xferHel per/targetSetXferHelper.js:50

Seems to happen mostly when a Sketchy table is involved and when I click 
somewhere on the canvas prior to pasting (instead of just doing a ctrl+c and 
ctrl+v straight away with the current selection).

Original issue reported on code.google.com by i...@ivanz.com on 18 Nov 2011 at 11:03

GoogleCodeExporter commented 9 years ago
I would consider this a high priority bug.  Also the fix is very easy.

on line 50, instead of passing in 

Util.getMessage("action.create.shape", this.canvas.currentController.getName())

as the argument, if you replace the above with "", it works.

If you are a Windows user then you can find the targetSetXferHelper.js file in 

C:\Program Files\Evolus\Pencil\app\content\pencil\xferHelper\

I am sure that the Linux directory structure is similar so you should be able 
to work out where the file is.

Original comment by Tahir.Co...@gmail.com on 24 Nov 2011 at 11:11

GoogleCodeExporter commented 9 years ago
Do I need to replace this whole part of line 50, 
"Util.getMessage("action.create.shape", 
this.canvas.currentController.getName()" with just ""?  

Or just the "action.create.shape" part?  

I didn't get this to work.

Original comment by richard....@fairwarningaudit.com on 22 Dec 2011 at 8:16

GoogleCodeExporter commented 9 years ago

Original comment by ngtdungnt@gmail.com on 9 Jan 2012 at 10:31

GoogleCodeExporter commented 9 years ago
Thanks to the fixer.  Sorry richard for not replying.  I have tried the newest 
version 1.3.3 from the download page and it is fixed. 

Original comment by Tahir.Co...@gmail.com on 17 Jan 2012 at 10:30