From 2692ba4d0e192b4c481b89b2f180b2b924853720 Mon Sep 17 00:00:00 2001 From: Matt Keeter Date: Wed, 19 Mar 2014 22:00:45 -0400 Subject: [PATCH] Adding license --- README.md | 7 +++++++ src/canvas.cpp | 5 +++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f50a632..a9a845f 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,13 @@ the project is under 1K lines of code and should be fairly approachable. -------------------------------------------------------------------------------- +License +------- +(c) 2014 Matt Keeter + +This work may be reproduced, modified, distributed, performed, and displayed for any purpose. Copyright is retained and must be preserved. The work is provided as is; no warranty is provided, and users accept all liability. + +-------------------------------------------------------------------------------- *p.s.* In my day job, I'm an engineer at [Formlabs](http://formlabs.com). If you think `fstl` is cool, you should check out our [jobs page](http://formlabs.com/jobs) -- we're hiring software developers diff --git a/src/canvas.cpp b/src/canvas.cpp index 4706f8f..4c31c6c 100644 --- a/src/canvas.cpp +++ b/src/canvas.cpp @@ -61,10 +61,11 @@ void Canvas::paintEvent(QPaintEvent *event) backdrop->draw(); if (mesh) draw_mesh(); + if (status.isNull()) return; + QPainter painter(this); painter.setRenderHint(QPainter::Antialiasing); - if (!status.isNull()) - painter.drawText(10, height() - 10, status); + painter.drawText(10, height() - 10, status); } -- 2.39.5