diff options
Diffstat (limited to 'starmath/source')
-rw-r--r-- | starmath/source/dialog.cxx | 4 | ||||
-rw-r--r-- | starmath/source/edit.cxx | 2 | ||||
-rw-r--r-- | starmath/source/node.cxx | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/starmath/source/dialog.cxx b/starmath/source/dialog.cxx index cf9616ad9980..87bf6a6c41be 100644 --- a/starmath/source/dialog.cxx +++ b/starmath/source/dialog.cxx @@ -1088,8 +1088,8 @@ void SmShowSymbolSet::calccols(const vcl::RenderContext& rRenderContext) nColumns = aOutputSize.Width() / nLen; nRows = aOutputSize.Height() / nLen; - nColumns = std::max<long>(1, nColumns); - nRows = std::max<long>(1, nRows); + nColumns = std::max<tools::Long>(1, nColumns); + nRows = std::max<tools::Long>(1, nRows); nXOffset = (aOutputSize.Width() - (nColumns * nLen)) / 2; nYOffset = (aOutputSize.Height() - (nRows * nLen)) / 2; diff --git a/starmath/source/edit.cxx b/starmath/source/edit.cxx index 59cef03975bf..c8f82355468e 100644 --- a/starmath/source/edit.cxx +++ b/starmath/source/edit.cxx @@ -283,7 +283,7 @@ void SmEditWindow::Resize() if (pEditView->GetVisArea().Top() > nMaxVisAreaStart) { tools::Rectangle aVisArea(pEditView->GetVisArea() ); - aVisArea.SetTop( std::max<long>(nMaxVisAreaStart, 0) ); + aVisArea.SetTop( std::max<tools::Long>(nMaxVisAreaStart, 0) ); aVisArea.SetSize(pEditView->GetOutputArea().GetSize()); pEditView->SetVisArea(aVisArea); pEditView->ShowCursor(); diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx index 1604655c08c1..e252b83ee308 100644 --- a/starmath/source/node.cxx +++ b/starmath/source/node.cxx @@ -1921,7 +1921,7 @@ void SmMatrixNode::Arrange(OutputDevice &rDev, const SmFormat &rFormat) // initialize array that is to hold the maximum widths of all // elements (subnodes) in that column. - std::vector<long> aColWidth(mnNumCols); + std::vector<tools::Long> aColWidth(mnNumCols); // arrange subnodes and calculate the above arrays contents size_t nNodes = GetNumSubNodes(); @@ -1945,7 +1945,7 @@ void SmMatrixNode::Arrange(OutputDevice &rDev, const SmFormat &rFormat) nVerDist = nNormDist * rFormat.GetDistance(DIS_MATRIXROW) / 100; // build array that holds the leftmost position for each column - std::vector<long> aColLeft(mnNumCols); + std::vector<tools::Long> aColLeft(mnNumCols); tools::Long nX = 0; for (size_t j = 0; j < mnNumCols; ++j) { |