Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
Improve Python API - GridConfig
Grum 9991c2c28d1850e
diff --git a/libs/libkis/GridConfig.cpp b/libs/libkis/GridConfig.cppindex 049682153f..e5e2e6a493 100644--- a/libs/libkis/GridConfig.cpp+++ b/libs/libkis/GridConfig.cpp@@ -9,6 +9,7 @@#include <QDomElement>#include "kis_grid_config.h"+#include "kis_debug.h"struct GridConfig::Private {Private() {}@@ -132,7 +133,7 @@ qreal GridConfig::angleLeft() constvoid GridConfig::setAngleLeft(qreal angleLeft){- d->gridConfig->setAngleLeft(qBound(1, angleLeft, 10));+ d->gridConfig->setAngleLeft(qBound(0.0, angleLeft, 89.0));}qreal GridConfig::angleRight() const@@ -142,7 +143,7 @@ qreal GridConfig::angleRight() constvoid GridConfig::setAngleRight(qreal angleRight){- d->gridConfig->setAngleRight(qBound(1, angleRight, 10));+ d->gridConfig->setAngleRight(qBound(0.0, angleRight, 89.0));}bool GridConfig::angleLeftActive() const