avoid a crash if used without attached buffer
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12090 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
9543470f44
commit
c3bfa6fec9
@ -612,6 +612,8 @@ Painter::DrawString(const char* utf8String, uint32 length,
|
||||
{
|
||||
fPatternHandler->SetPattern(B_SOLID_HIGH);
|
||||
|
||||
if (fBuffer) {
|
||||
|
||||
Transformable transform;
|
||||
// TODO: convert BFont::Shear(), which is in degrees 45°...135° to whatever AGG is using
|
||||
// transform.ShearBy(B_ORIGIN, fFont.Shear(), 0.0);
|
||||
@ -632,6 +634,7 @@ Painter::DrawString(const char* utf8String, uint32 length,
|
||||
transform.RotateBy(B_ORIGIN, -fFont.Rotation());
|
||||
transform.TranslateBy(baseLine);
|
||||
transform.Transform(&fPenLocation);
|
||||
}
|
||||
}
|
||||
|
||||
// DrawString
|
||||
|
Loading…
x
Reference in New Issue
Block a user