Commits
Pam Ford authored cb5ae28e7b9 Merge
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 | |