mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04:00
cad/opencascade740: Fix build with with freetype2 2.13.3
Apply same fix as for cad/opencascade PR: 281316 Approved by: portmgr (blanket, build fix)
This commit is contained in:
parent
a99e5ef3a8
commit
a0ddecafac
2 changed files with 12 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
PORTNAME= opencascade
|
||||
PORTVERSION= 7.4.0 # resurrected because science/chrono only builds with opencascade-7.4.0, see https://github.com/projectchrono/chrono/issues/359#issuecomment-1023478083
|
||||
PORTREVISION= 3
|
||||
PORTREVISION= 4
|
||||
CATEGORIES= cad science
|
||||
PKGNAMESUFFIX= 740
|
||||
|
||||
|
|
11
cad/opencascade740/files/patch-src_Font_Font__BRepFont.cxx
Normal file
11
cad/opencascade740/files/patch-src_Font_Font__BRepFont.cxx
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- src/Font/Font_BRepFont.cxx.orig 2024-09-24 18:34:32 UTC
|
||||
+++ src/Font/Font_BRepFont.cxx
|
||||
@@ -430,7 +430,7 @@ Standard_Boolean Font_BRepFont::renderGlyph (const Sta
|
||||
for (short aContour = 0, aStartIndex = 0; aContour < anOutline.n_contours; ++aContour)
|
||||
{
|
||||
const FT_Vector* aPntList = &anOutline.points[aStartIndex];
|
||||
- const char* aTags = &anOutline.tags[aStartIndex];
|
||||
+ const auto* aTags = &anOutline.tags[aStartIndex];
|
||||
const short anEndIndex = anOutline.contours[aContour];
|
||||
const short aPntsNb = (anEndIndex - aStartIndex) + 1;
|
||||
aStartIndex = anEndIndex + 1;
|
Loading…
Add table
Reference in a new issue