Fix typo from 'orignal' to 'original'

A variable was named orignalWidth, its name is corrected to
originalWidth.
upstream-master
Nikolaos Chatzikonstantinou 5 years ago committed by Bryan Tan
parent ab57ddda24
commit 466082db42
  1. 8
      src/undo/SizeUndoAction.cpp

@ -12,10 +12,10 @@ using std::vector;
class SizeUndoActionEntry {
public:
SizeUndoActionEntry(Stroke* s, double orignalWidth, double newWidth, vector<double> originalPressure,
SizeUndoActionEntry(Stroke* s, double originalWidth, double newWidth, vector<double> originalPressure,
vector<double> newPressure, int pressureCount) {
this->s = s;
this->orignalWidth = orignalWidth;
this->originalWidth = originalWidth;
this->newWidth = newWidth;
this->originalPressure = std::move(originalPressure);
this->newPressure = std::move(newPressure);
@ -24,7 +24,7 @@ public:
~SizeUndoActionEntry() = default;
Stroke* s;
double orignalWidth;
double originalWidth;
double newWidth;
vector<double> originalPressure;
@ -70,7 +70,7 @@ auto SizeUndoAction::undo(Control* control) -> bool {
Range range(e->s->getX(), e->s->getY());
for (SizeUndoActionEntry* e: this->data) {
e->s->setWidth(e->orignalWidth);
e->s->setWidth(e->originalWidth);
e->s->setPressure(e->originalPressure);
range.addPoint(e->s->getX(), e->s->getY());

Loading…
Cancel
Save