Bug in app_server prevents text drawing inside clipping region.

Don't constrain clipping region until bug has been fixed.
Printing to Preview printer driver works now again from StyledEdit.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21995 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Pfeiffer 2007-08-17 08:33:38 +00:00
parent 4b05331d1b
commit afc8f551f8

View File

@ -165,7 +165,10 @@ void PreviewView::DrawPage(BRect rect)
BRect r(PrintableRect());
r.OffsetBy(kPreviewLeftMargin, kPreviewTopMargin);
BRegion clip(r);
ConstrainClippingRegion(&clip);
// Text drawing does not work if clipping region
// is constraint.
// TODO enable after app_server bug has been fixed
// ConstrainClippingRegion(&clip);
// draw page contents
PushState();
@ -177,8 +180,10 @@ void PreviewView::DrawPage(BRect rect)
SetScale(ZoomFactor());
fCachedPage->Draw(this);
PushState();
fCachedPage->Draw(this);
PopState();
PopState();
}