]> git.sur5r.net Git - fstl/commitdiff
Adding license
authorMatt Keeter <matt.j.keeter@gmail.com>
Thu, 20 Mar 2014 02:00:45 +0000 (22:00 -0400)
committerMatt Keeter <matt.j.keeter@gmail.com>
Thu, 20 Mar 2014 02:01:19 +0000 (22:01 -0400)
README.md
src/canvas.cpp

index f50a63213d83d71764b1e6d9871132474d72a2af..a9a845ffaed12717b7cf290eec5255968bc72226 100644 (file)
--- 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
index 4706f8fe63053b3febd0adf7a4502d09dc59a4c2..4c31c6c8896efab5eeb25986d64a6fe782648848 100644 (file)
@@ -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);
 }