[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Stat Graph Y axis not center aligned properly

From: ch3cooli <ch3cooli_at_yahoo.com.hk>
Date: Wed, 23 Jan 2013 05:11:41 -0800 (PST)

src/Utils/MiscUI/MyGraph.cpp

@@ -967,7 +967,7 @@ void MyGraph::DrawAxes(CDC& dc) const
     CFont* pFontOld = dc.SelectObject(&fontYAxis);
     ASSERT_VALID(pFontOld);
     CSize sizYLabel(dc.GetTextExtent(m_sYAxisLabel));
- VERIFY(dc.TextOut(GAP_PIXELS, (m_rcGraph.Height() - sizYLabel.cy) / 2,
+ VERIFY(dc.TextOut(GAP_PIXELS, (m_rcGraph.Height() + sizYLabel.cx) / 2,
         m_sYAxisLabel));
 
     // Set the x-axis label font and draw the label.

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=3045483

To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2013-01-23 17:22:04 CET

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.