fix issue with unsupported typedef on Mac
This commit is contained in:
@@ -30,12 +30,12 @@ void LineNumberWindow::Paint( const Rectangle& )
|
||||
|
||||
GetParent()->Resize();
|
||||
|
||||
ulong windowHeight = GetOutputSize().Height();
|
||||
ulong nLineHeight = GetTextHeight();
|
||||
int windowHeight = GetOutputSize().Height();
|
||||
int nLineHeight = GetTextHeight();
|
||||
|
||||
ulong startY = txtView->GetStartDocPos().Y();
|
||||
ulong nStartLine = startY / nLineHeight + 1;
|
||||
ulong nEndLine = (startY + windowHeight) / nLineHeight + 1;
|
||||
int startY = txtView->GetStartDocPos().Y();
|
||||
int nStartLine = startY / nLineHeight + 1;
|
||||
int nEndLine = (startY + windowHeight) / nLineHeight + 1;
|
||||
|
||||
if(txtEngine->GetParagraphCount() + 1 < nEndLine)
|
||||
nEndLine = txtEngine->GetParagraphCount() + 1;
|
||||
@@ -43,7 +43,7 @@ void LineNumberWindow::Paint( const Rectangle& )
|
||||
nWidth = String::CreateFromInt64(nEndLine).Len() * 10;
|
||||
|
||||
sal_Int64 y = (nStartLine - 1) * nLineHeight;
|
||||
for(ulong i = nStartLine; i <= nEndLine; ++i, y += nLineHeight)
|
||||
for(int i = nStartLine; i <= nEndLine; ++i, y += nLineHeight)
|
||||
DrawText(Point(0, y - nCurYOffset), String::CreateFromInt64(i));
|
||||
}
|
||||
|
||||
@@ -88,7 +88,7 @@ bool LineNumberWindow::SyncYOffset()
|
||||
return true;
|
||||
}
|
||||
|
||||
ulong LineNumberWindow::GetWidth()
|
||||
int LineNumberWindow::GetWidth()
|
||||
{
|
||||
return (nWidth < 20 ? 20 : nWidth);
|
||||
}
|
||||
|
@@ -9,7 +9,7 @@ class LineNumberWindow : public Window
|
||||
{
|
||||
private:
|
||||
ModulWindow* pModulWindow;
|
||||
ulong nWidth;
|
||||
int nWidth;
|
||||
long nCurYOffset;
|
||||
|
||||
virtual void DataChanged(DataChangedEvent const & rDCEvt);
|
||||
@@ -26,7 +26,7 @@ public:
|
||||
bool SyncYOffset();
|
||||
long& GetCurYOffset();
|
||||
|
||||
ulong GetWidth();
|
||||
int GetWidth();
|
||||
};
|
||||
|
||||
#endif // BASICIDE_LINENUMBERWINDOW_HXX
|
||||
|
Reference in New Issue
Block a user