← Back to team overview

touch-packages team mailing list archive

[Bug 1477243] Re: In function _grail_be_slice_state_update position_y is not updated.

 

** Branch linked: lp:~bregma/geis/lp-1477243-vivid

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to geis in Ubuntu.
https://bugs.launchpad.net/bugs/1477243

Title:
  In function _grail_be_slice_state_update  position_y is not updated.

Status in Geis:
  In Progress
Status in Geis trusty series:
  Triaged
Status in Geis vivid series:
  Triaged
Status in geis package in Ubuntu:
  In Progress
Status in geis source package in Trusty:
  Triaged
Status in geis source package in Vivid:
  Triaged

Bug description:
  static void
  _grail_be_slice_state_update(struct _GeisSliceState *slice_state, UGSlice slice)
  {
    
    if (slice_state->num_touches != grail_slice_get_num_touches(slice))
    {
      const UGTransform *C = grail_slice_get_cumulative_transform(slice);

      slice_state->angle = 0.0f;
      slice_state->position_x = grail_slice_get_original_center_x(slice) +
                                (*C)[0][2];
      slice_state->position_x = grail_slice_get_original_center_x(slice) +
                                (*C)[1][2];
      slice_state->radius = 1.0f;
      slice_state->num_touches = grail_slice_get_num_touches(slice);
    }
  }

     slice_state->position_x = grail_slice_get_original_center_x(slice) +
                               (*C)[1][2];

  I suspect this must be 
     slice_state->position_y = grail_slice_get_original_center_y(slice) +
                               (*C)[1][2];

To manage notifications about this bug go to:
https://bugs.launchpad.net/geis/+bug/1477243/+subscriptions