Allow ValueViewers to have a bounding box different from the Style's. This closes #64.

This commit is contained in:
Twan van Laarhoven
2020-06-01 01:18:13 +02:00
parent e9305c7554
commit 4ff603d413
24 changed files with 79 additions and 87 deletions
+2 -2
View File
@@ -43,7 +43,7 @@ void DataViewer::draw(RotatedDC& dc, const Color& background) {
// prepare viewers
bool changed_content_properties = false;
FOR_EACH(v, viewers) { // draw low z index fields first
if (v->getStyle()->isVisible()) {
if (v->isVisible()) {
Rotater r(dc, v->getRotation());
try {
if (v->prepare(dc)) {
@@ -59,7 +59,7 @@ void DataViewer::draw(RotatedDC& dc, const Color& background) {
}
// draw viewers
FOR_EACH(v, viewers) { // draw low z index fields first
if (v->getStyle()->isVisible()) {// visible
if (v->isVisible()) {// visible
Rotater r(dc, v->getRotation());
try {
drawViewer(dc, *v);