diff options
| author | nyamatongwe <unknown> | 2011-03-30 11:45:46 +1100 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2011-03-30 11:45:46 +1100 | 
| commit | 56eba2f34946b226dc4734298b85cc30bcb834fe (patch) | |
| tree | 31861f8774e40da929410c65584d8c707f32fd44 /src/ViewStyle.cxx | |
| parent | 48028319f42e97ade19f187e909d2d1ed2807e56 (diff) | |
| download | scintilla-mirror-56eba2f34946b226dc4734298b85cc30bcb834fe.tar.gz | |
Avoid clash with field 'ascent' between FontMeasurements and PLAT_WX
version of Font.
Diffstat (limited to 'src/ViewStyle.cxx')
| -rw-r--r-- | src/ViewStyle.cxx | 18 | 
1 files changed, 9 insertions, 9 deletions
| diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx index a71ca9fab..24272789c 100644 --- a/src/ViewStyle.cxx +++ b/src/ViewStyle.cxx @@ -89,14 +89,14 @@ void FontRealised::Realise(Surface &surface, int zoomLevel) {  		sizeZoomed = 2;  	int deviceHeight = surface.DeviceHeightFont(sizeZoomed); -	Create(fontName, characterSet, deviceHeight, bold, italic, extraFontFlag); - -	ascent = surface.Ascent(*this); -	descent = surface.Descent(*this); -	externalLeading = surface.ExternalLeading(*this); -	lineHeight = surface.Height(*this); -	aveCharWidth = surface.AverageCharWidth(*this); -	spaceWidth = surface.WidthChar(*this, ' '); +	font.Create(fontName, characterSet, deviceHeight, bold, italic, extraFontFlag); + +	ascent = surface.Ascent(font); +	descent = surface.Descent(font); +	externalLeading = surface.ExternalLeading(font); +	lineHeight = surface.Height(font); +	aveCharWidth = surface.AverageCharWidth(font); +	spaceWidth = surface.WidthChar(font, ' ');  	if (frNext) {  		frNext->Realise(surface, zoomLevel);  	} @@ -380,7 +380,7 @@ void ViewStyle::Refresh(Surface &surface) {  	for (unsigned int k=0; k<stylesSize; k++) {  		FontRealised *fr = frFirst->Find(styles[k]); -		styles[k].Copy(*fr, *fr); +		styles[k].Copy(fr->font, *fr);  	}  	maxAscent = 1;  	maxDescent = 1; | 
