bug1317284-comment1: Fixed crash when both mouse buttons used simultaneously with pencil tool

Fixed problem by making Pencil tool more similar to the Brush tool.