diff options
author | Adrián Medraño Calvo <adrian@medranocalvo.com> | 2017-07-20 10:44:06 (GMT) |
---|---|---|
committer | Adrián Medraño Calvo <adrian@medranocalvo.com> | 2017-07-21 11:40:47 (GMT) |
commit | 0383f13a9c207f08a063ef44afd151fc40156553 (patch) | |
tree | 650c92cd7b026c9921e21ad3d022f93ff64aa21d /generic/tkbltGrAxis.C | |
parent | 2655a6b45562ceac31a7b7d82312650be57e6d1a (diff) | |
download | blt-0383f13a9c207f08a063ef44afd151fc40156553.zip blt-0383f13a9c207f08a063ef44afd151fc40156553.tar.gz blt-0383f13a9c207f08a063ef44afd151fc40156553.tar.bz2 |
Upgrade getBoundingBox angle to double
Diffstat (limited to 'generic/tkbltGrAxis.C')
-rw-r--r-- | generic/tkbltGrAxis.C | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tkbltGrAxis.C b/generic/tkbltGrAxis.C index 49d4850..fbfa817 100644 --- a/generic/tkbltGrAxis.C +++ b/generic/tkbltGrAxis.C @@ -384,9 +384,9 @@ int Axis::configure() scrollMax_ = NAN; } - float angle = fmod(ops->tickAngle, 360.0); - if (angle < 0.0f) - angle += 360.0f; + double angle = fmod(ops->tickAngle, 360.0); + if (angle < 0.0) + angle += 360.0; ops->tickAngle = angle; resetTextStyles(); @@ -1918,7 +1918,7 @@ void Axis::getGeometry() labelPtr->width = lw; labelPtr->height = lh; - if (ops->tickAngle != 0.0f) { + if (ops->tickAngle != 0.0) { // Rotated label width and height double rlw, rlh; graphPtr_->getBoundingBox(lw, lh, ops->tickAngle, &rlw, &rlh, NULL); |