summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjoye <joye>2014-03-25 17:54:21 (GMT)
committerjoye <joye>2014-03-25 17:54:21 (GMT)
commit26bbb288f2eb3a902a1ff8456b4e1e1d9045f463 (patch)
tree27f5d2da23df62750a86f69758da85c1a79c1259 /src
parent8ef06f4159e1e3874f2fd52d24e597591f636c60 (diff)
downloadblt-26bbb288f2eb3a902a1ff8456b4e1e1d9045f463.zip
blt-26bbb288f2eb3a902a1ff8456b4e1e1d9045f463.tar.gz
blt-26bbb288f2eb3a902a1ff8456b4e1e1d9045f463.tar.bz2
*** empty log message ***
Diffstat (limited to 'src')
-rw-r--r--src/bltGrElemLine.C3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bltGrElemLine.C b/src/bltGrElemLine.C
index c25410a..94838b0 100644
--- a/src/bltGrElemLine.C
+++ b/src/bltGrElemLine.C
@@ -836,6 +836,7 @@ static int ScaleSymbol(LineElement* elemPtr, int normalSize)
if (elemPtr->scaleSymbols) {
double xRange = (elemPtr->axes.x->max - elemPtr->axes.x->min);
double yRange = (elemPtr->axes.y->max - elemPtr->axes.y->min);
+ // Save the ranges as a baseline for future scaling
if (elemPtr->flags & SCALE_SYMBOL) {
elemPtr->xRange = xRange;
elemPtr->yRange = yRange;
@@ -859,6 +860,7 @@ static int ScaleSymbol(LineElement* elemPtr, int normalSize)
// Make the symbol size odd so that its center is a single pixel.
newSize |= 0x01;
+
return newSize;
}
@@ -1875,7 +1877,6 @@ static void MapLineProc(Graph* graphPtr, Element *basePtr)
LineStyle *stylePtr = (LineStyle*)Blt_Chain_GetValue(link);
LinePen* penPtr = (LinePen *)stylePtr->penPtr;
int size = ScaleSymbol(elemPtr, penPtr->symbol.size);
- // cerr << size << ' ' << penPtr->symbol.size << endl;
stylePtr->symbolSize = size;
stylePtr->errorBarCapWidth = (penPtr->errorBarCapWidth > 0)
? penPtr->errorBarCapWidth : Round(size * 0.6666666);