From c88752d621069b12f978c1fd88ffdd52537a4657 Mon Sep 17 00:00:00 2001
From: Nivesh Rajbhandari
Date: Wed, 15 Aug 2012 12:21:20 -0700
Subject: Allow rectangle and oval shapes to be created with 0 px stroke size.
 Line shapes' stroke size will still be restricted to a minimum of 1 px.

Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
---
 js/lib/geom/rectangle.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'js/lib/geom/rectangle.js')

diff --git a/js/lib/geom/rectangle.js b/js/lib/geom/rectangle.js
index f3db92af..b34a97ab 100755
--- a/js/lib/geom/rectangle.js
+++ b/js/lib/geom/rectangle.js
@@ -603,7 +603,7 @@ exports.Rectangle = Object.create(GeomObj, {
 
             // render the stroke
             ctx.beginPath();
-            if (this._strokeColor) {
+            if (this._strokeColor && (lw > 0)) {
                 inset = Math.ceil( 0.5*lw ) - 0.5;
 
                 if(this._strokeColor.gradientMode) {
-- 
cgit v1.2.3