fix syntax error canvas.cpp

add open curly bracket on line 1864