Skip to content

Commit

Permalink
Merge branch 'kdchart-3.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
Allen Winter committed Dec 14, 2023
2 parents 4a3a403 + d87886c commit 38aa3b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,15 @@ repos:
- id: check-yaml
args: [--allow-multiple-documents]
- id: check-json
- id: check-symlinks
- id: destroyed-symlinks
- id: check-executables-have-shebangs
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v17.0.3
rev: v17.0.6
hooks:
- id: clang-format
- repo: https://github.com/PyCQA/pylint
rev: v3.0.1
rev: v3.0.3
hooks:
- id: pylint
exclude: ^(.cmake-format.py|conan/conanfile.py|scripts/genignore.py)
Expand Down
3 changes: 1 addition & 2 deletions src/KDChart/KDChartLayoutItems.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -479,8 +479,7 @@ void KDChart::TextLayoutItem::paint(QPainter *painter)
}
painter->setFont(f);

QSize innerSize = unrotatedTextSize();
QRectF rect = QRectF(QPointF(0, 0), innerSize);
QRectF rect = mRect;
rect.translate(-rect.center());
painter->translate(mRect.center());
painter->rotate(mAttributes.rotation());
Expand Down

0 comments on commit 38aa3b6

Please sign in to comment.