Skip to content
This repository has been archived by the owner on Nov 21, 2019. It is now read-only.

Commit

Permalink
CutBlock BlockTrf attribute x and y are always with 4 digits after de…
Browse files Browse the repository at this point in the history
…cimal point now (#1)
  • Loading branch information
dkormalev authored Oct 3, 2018
1 parent 6dfaae7 commit 62c922a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Proof Changelog

## Not Released
#### Features
* --
* CutBlock BlockTrf attribute x and y are always with 4 digits after decimal point now

#### Bug Fixing
* --
Expand Down
5 changes: 4 additions & 1 deletion src/proofnetwork/jdf/data/cutblock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,10 @@ void CutBlock::setTransformationMatrix(const QString &arg)
void CutBlock::setTransformationMatrix(double x, double y, double rotation)
{
Q_D(CutBlock);
QString transformationMatrix = QStringLiteral("%1 %2 %3").arg(d->createRotationMatrixString(rotation)).arg(x).arg(y);
QString transformationMatrix = QStringLiteral("%1 %2 %3")
.arg(d->createRotationMatrixString(rotation))
.arg(x, 0, 'f', 4, QLatin1Char(' '))
.arg(y, 0, 'f', 4, QLatin1Char(' '));

setTransformationMatrix(transformationMatrix);
}
Expand Down

0 comments on commit 62c922a

Please sign in to comment.