diff options
author | joye <joye> | 2014-05-06 18:26:57 (GMT) |
---|---|---|
committer | joye <joye> | 2014-05-06 18:26:57 (GMT) |
commit | 358d5a4ebed94c9b7aa2e879c4d7234f227a99ae (patch) | |
tree | d36a3f77cc7b4a9acd7d70c270317b4c44a28f48 /src/bltGraphSup.C | |
parent | 16a5c9af45ae9e810e8eebaa4e1663ea64d8c255 (diff) | |
download | blt-358d5a4ebed94c9b7aa2e879c4d7234f227a99ae.zip blt-358d5a4ebed94c9b7aa2e879c4d7234f227a99ae.tar.gz blt-358d5a4ebed94c9b7aa2e879c4d7234f227a99ae.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'src/bltGraphSup.C')
-rw-r--r-- | src/bltGraphSup.C | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/bltGraphSup.C b/src/bltGraphSup.C index 644e09f..462e2da 100644 --- a/src/bltGraphSup.C +++ b/src/bltGraphSup.C @@ -520,17 +520,17 @@ void Graph::getAxisGeometry(Axis *axisPtr) TickLabel* labelPtr = axisPtr->makeLabel(x); Blt_Chain_Append(axisPtr->tickLabels_, labelPtr); nLabels++; - /* - * Get the dimensions of each tick label. Remember tick labels - * can be multi-lined and/or rotated. - */ - unsigned int lw, lh; /* Label width and height. */ - Blt_GetTextExtents(aops->tickFont, 0, labelPtr->string, -1, &lw, &lh); + + // Get the dimensions of each tick label. Remember tick labels + // can be multi-lined and/or rotated. + int lw, lh; + Blt_GetTextExtents(aops->tickFont, labelPtr->string, -1, &lw, &lh); labelPtr->width = lw; labelPtr->height = lh; if (aops->tickAngle != 0.0f) { - double rlw, rlh; /* Rotated label width and height. */ + // Rotated label width and height + double rlw, rlh; Blt_GetBoundingBox(lw, lh, aops->tickAngle, &rlw, &rlh, NULL); lw = ROUND(rlw), lh = ROUND(rlh); } |