equal
deleted
inserted
replaced
92 static bool betweenMidpoints; |
92 static bool betweenMidpoints; |
93 |
93 |
94 static bool isLineEmpty = true; |
94 static bool isLineEmpty = true; |
95 static bool previousLineBrokeCleanly = true; |
95 static bool previousLineBrokeCleanly = true; |
96 static int numSpaces; |
96 static int numSpaces; |
|
97 |
|
98 struct cleanupMidpoints { |
|
99 ~cleanupMidpoints() { |
|
100 if(smidpoints) |
|
101 { |
|
102 smidpoints->clear(); |
|
103 delete smidpoints; |
|
104 smidpoints = 0; |
|
105 } |
|
106 } |
|
107 }; |
|
108 static cleanupMidpoints deleteMidPoints; |
|
109 |
97 |
110 |
98 static int getBPMWidth(int childValue, Length cssUnit) |
111 static int getBPMWidth(int childValue, Length cssUnit) |
99 { |
112 { |
100 if (!cssUnit.isIntrinsicOrAuto()) |
113 if (!cssUnit.isIntrinsicOrAuto()) |
101 return (cssUnit.isFixed() ? cssUnit.value() : childValue); |
114 return (cssUnit.isFixed() ? cssUnit.value() : childValue); |