[Kst] extragear/graphics/kst/kst

Barth Netterfield netterfield at astro.utoronto.ca
Thu Dec 8 07:51:24 CET 2005


SVN commit 486618 by netterfield:

fix size in horizontal legend mode.



 M  +3 -2      kstviewlegend.cpp  


--- trunk/extragear/graphics/kst/kst/kstviewlegend.cpp #486617:486618
@@ -64,6 +64,7 @@
   _absFontSize = _fontSize+KstSettings::globalSettings()->plotFontSize;
   _layoutActions &= ~(MoveTo | Copy | CopyTo);
   _standardActions |= Delete | Edit;
+  setFollowsFlow(true);
   computeTextSize();
   setDirty(false);
 }
@@ -83,7 +84,7 @@
   _layoutActions &= ~(MoveTo | Copy | CopyTo);
   _standardActions |= Delete | Edit;
   QStringList ctaglist;
-  
+  setFollowsFlow(true);
   // read the properties
   QDomNode n = e.firstChild();
   while (!n.isNull()) {
@@ -339,7 +340,7 @@
   if (_vertical) {
     width = _textWidth + 9*_ascent/2;
   } else {
-    width = _textWidth + 9*_ascent*Curves.count()/2;
+    width = _textWidth + 9*_ascent*Curves.count()/2 - _ascent;
   }
   height = _textHeight;
 


More information about the Kst mailing list