[Kst] extragear/graphics/kst/src/libkstmath

George Staikos staikos at kde.org
Mon Mar 20 23:58:14 CET 2006


SVN commit 520834 by staikos:

document the magic number and increment it by one


 M  +3 -2      kstpainter.cpp  


--- trunk/extragear/graphics/kst/src/libkstmath/kstpainter.cpp #520833:520834
@@ -58,8 +58,9 @@
 
 int KstPainter::lineWidthAdjustmentFactor() const {
   const QRect& w(window());
-  // Magic number!  What does it mean?
-  const int factor = (w.width() + w.height()) / 1999;
+  /* For square windows, the line width is in units of 0.1% of window size */
+  /* For printing to Letter or A10, line width is ~in points */
+  const int factor = (w.width() + w.height()) / 2000;
   return factor > 0 ? factor : 1;
 }
 


More information about the Kst mailing list