[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/karbon/plugins/tools/CalligraphyTool
From: Fela Winkelmolen <fela.kde () gmail ! com>
Date: 2008-07-02 7:41:42
Message-ID: 1214984502.175578.6643.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 827059 by fela:
Make negative thinning work correctly.
M +2 -5 KarbonCalligraphyTool.cpp
--- trunk/koffice/karbon/plugins/tools/CalligraphyTool/KarbonCalligraphyTool.cpp #827058:827059
@@ -152,11 +152,8 @@
// calculate the modulo of the speed
double speed = std::sqrt( pow(m_speed.x(), 2) + pow(m_speed.y(), 2) );
- double thinning;
- if ( m_thinning > 0 )
- thinning = m_thinning * (speed + 1) / 10.0;
- else
- thinning = m_thinning * (5 - speed) / 10.0;
+ double thinning = m_thinning * (speed + 1) / 10.0;
+
if ( thinning > 1 )
thinning = 1;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic