Check pointer after addShape called.
Fix MgPathShape::_hitTest().
Call linesHit in MgPathShape::_hitTest().
Send onDocLoaded notify after undo/redo. Fix MgShapes::hitTest.
Enable force to set line cap. Add CmdClipRect.
R39
R39: Add shape clip classes.

Change the shape parameter as const pointer for shapeAdded.
Check pointer after addShape called.
Fix MgPathShape::_hitTest().
Send onDocLoaded notify after undo/redo. Fix MgShapes::hitTest.
Enable force to set line cap. Add CmdClipRect.