Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » UppHub » PieChart: Title disable
PieChart: Title disable [message #28374] Tue, 31 August 2010 10:22 Go to previous message
kohait00 is currently offline  kohait00
Messages: 939
Registered: July 2009
Location: Germany
Experienced Contributor
hi Pie author

a title sometimes is not desired, then the space is empty but could be used better..
-		if(titlePos==BOTTOM)
-			cy=scale*(GetSize().cy-titleGap-titleFont.GetHeight())/2;			
-		else
-			cy=scale*(GetSize().cy+titleGap+titleFont.GetHeight())/2;
+		if(!title.IsEmpty()) 
+		{
+			if(titlePos==BOTTOM)
+				cy=scale*(GetSize().cy-titleGap-titleFont.GetHeight())/2;			
+			else
+				cy=scale*(GetSize().cy+titleGap+titleFont.GetHeight())/2;
+		}
+		else cy=scale*(GetSize().cy+titleGap+0)/2;		
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [BUG] Heap leak in SysExec package
Next Topic: Upp package binding for LLVM/Clang library (libclang)
Goto Forum:
  


Current Time: Fri Apr 26 12:56:21 CEST 2024

Total time taken to generate the page: 0.06251 seconds