Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 331526

Summary: VMLCanvas - js-method bezierCurveTo has an error
Product: [RT] RAP Reporter: Eric Peukert <eric.peukert>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: 1.4 M4   
Hardware: All   
OS: All   
Whiteboard:

Description Eric Peukert CLA 2010-12-01 06:56:21 EST
Build Identifier: 

The js-file for the VMLCanvas contains a small typo-error for the following method. A fix is attached.

old:
bezierCurveTo : function( cpx1, cpy1, cpx2, cpy2, x, y ) {
      this._currentPath.push( {
        "type" : 'bezierCurveTo',
        "cp1x" : cp1x,
        "cp1y" : cp1y,
        "cp2x" : cp2x,
        "cp2y" : cp2y,
        "x"    : x,
        "y"    : y
      } );
    },  

new:
bezierCurveTo : function( cpx1, cpy1, cpx2, cpy2, x, y ) {
      this._currentPath.push( {
        "type" : 'bezierCurveTo',
        "cp1x" : cpx1,
        "cp1y" : cpy1,
        "cp2x" : cpx2,
        "cp2y" : cpy2,
        "x"    : x,
        "y"    : y
      } );
    },

Reproducible: Always
Comment 1 Ivan Furnadjiev CLA 2010-12-01 08:08:05 EST
Fixed in CVS HEAD.