Skip to content

Commit

Permalink
Fix typo from 'orignal' to 'original'
Browse files Browse the repository at this point in the history
A variable was named orignalWidth, its name is corrected to
originalWidth.
  • Loading branch information
createyourpersonalaccount authored and Technius committed Sep 12, 2021
1 parent ab57ddd commit 466082d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/undo/SizeUndoAction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -24,7 +24,7 @@ class SizeUndoActionEntry {

~SizeUndoActionEntry() = default;
Stroke* s;
double orignalWidth;
double originalWidth;
double newWidth;

vector<double> originalPressure;
Expand Down Expand Up @@ -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());
Expand Down

0 comments on commit 466082d

Please sign in to comment.