Commits

Pam Ford authored cb5ae28e7b9 Merge
Merge pull request #939 in CASA/casa from CAS-12413 to master

* commit 'fbfeb12ea1886bf912331e12fd88a630ea2ebe87': CAS-12413 squash gcc compiler warnings on linux

code/casaqt/QwtPlotter/QPExporter.cc

Modified
536 536 } else {
537 537 findYAxisLocations(numYaxes, isVertical, left, right);
538 538 }
539 539 } else { // first canvas is a plot not an axis
540 540 bottom = (numXaxes > 0) ? true : false;
541 541 right = (numYaxes > 0) ? true : false;
542 542 }
543 543 }
544 544
545 545 int xpos=0, ypos=0, icanv=0;
546 - int canvWidth, canvHeight;
546 + int canvWidth, canvHeight = 0;
547 547 QImage canvImage;
548 548 QRect printGeom;
549 549
550 550 // width and height are for exported image
551 551 QImage image = QImage(width, height, QImage::Format_ARGB32);
552 552 // white background
553 553 image.fill(canv->palette().color(canv->backgroundRole()).rgba());
554 554 image.fill((uint)(-1));
555 555 QPainter painter(&image);
556 556

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut