-
- pbreak = (int)(from * m_Scale + m_Height);
- while (m_Cells -> AdjustPagebreak(&pbreak)) {}
-
- if (!dont_render) {
- int w, h;
- m_DC -> GetSize(&w, &h);
- float overallScale = (float)(w/(float)m_MaxWidth) / m_Scale;
- m_DC -> SetUserScale(overallScale, overallScale);
-
- m_DC -> SetBrush(*wxWHITE_BRUSH);
-
- m_DC -> SetClippingRegion(x * m_Scale, y * m_Scale, m_Width, m_Height);
- m_Cells -> Draw(*m_DC,
- x * m_Scale, (y - from) * m_Scale,
- y * m_Scale, pbreak + (y - from) * m_Scale);
- m_DC -> DestroyClippingRegion();
+
+ pbreak = (int)(from + m_Height);
+ while (m_Cells->AdjustPagebreak(&pbreak)) {}
+ hght = pbreak - from;
+
+ if (!dont_render)
+ {
+ m_DC->SetBrush(*wxWHITE_BRUSH);
+
+ m_DC->SetClippingRegion(x, y, m_Width, hght);
+ m_Cells->Draw(*m_DC,
+ x, (y - from),
+ y, pbreak + (y /*- from*/));
+ m_DC->DestroyClippingRegion();