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:
@@ -165,7 +165,10 @@ void PreviewView::DrawPage(BRect rect)
|
|||||||
BRect r(PrintableRect());
|
BRect r(PrintableRect());
|
||||||
r.OffsetBy(kPreviewLeftMargin, kPreviewTopMargin);
|
r.OffsetBy(kPreviewLeftMargin, kPreviewTopMargin);
|
||||||
BRegion clip(r);
|
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
|
// draw page contents
|
||||||
PushState();
|
PushState();
|
||||||
@@ -177,8 +180,10 @@ void PreviewView::DrawPage(BRect rect)
|
|||||||
|
|
||||||
SetScale(ZoomFactor());
|
SetScale(ZoomFactor());
|
||||||
|
|
||||||
fCachedPage->Draw(this);
|
PushState();
|
||||||
|
fCachedPage->Draw(this);
|
||||||
|
PopState();
|
||||||
|
|
||||||
PopState();
|
PopState();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user