Since managing multiple pathes by a painter or a stroke,
multiple pathes will be drawn in one "dashed" function call.
And its vdasher's moveTo() function only do the job properly
when there is only one moveTo call.
Now, the moveTo() function initialize internal properties properly.
Change-Id: I4dd45d480f27dce734ce2ef8d1ff38774c589e64
void VDasher::moveTo(const VPointF &p)
{
mIsCurrentOperationGap = false;
+ mNewSegment = false;
mStartPt = p;
mCurPt = p;
normalizeLen -= mDashArray[i].gap;
}
} else {
- mCurrentDashIndex = 0;
- mCurrentDashLength = mDashArray[0].length;
+ mCurrentDashLength = mDashArray[mCurrentDashIndex].length;
}
}
if (path.isEmpty()) return VPath();
mDashedPath = VPath();
+ mCurrentDashIndex = 0;
const std::vector<VPath::Element> &elms = path.elements();
const std::vector<VPointF> & pts = path.points();
const VPointF * ptPtr = pts.data();