Merge pull request '重构pcfiso' (#16) from company-desktop-computer/feature/company-ai-dev into main

Reviewed-on: #16
This commit was merged in pull request #16.
This commit is contained in:
gjm committed 2026-10-19 09:27:00 +08:00
commit 5650ea28b8
1 file changed
+4 -2
+4 -2
View File
@@ -375,7 +375,8 @@ namespace
{
if (!txt || !*txt) return AcDbObjectId::kNull;
const AcGePoint2d q = apply(p);
AcDbText *pEnt = new AcDbText(AcGePoint3d(q.x, q.y, 0.0), txt, AcDbObjectId::kNull, h, 0.0);
const double hh = h * m_scale; // 文字高度也要随缩放变换(与 addCircle 的 r*m_scale 一致)
AcDbText *pEnt = new AcDbText(AcGePoint3d(q.x, q.y, 0.0), txt, AcDbObjectId::kNull, hh, 0.0);
return append(pEnt, layer);
}
@@ -384,7 +385,8 @@ namespace
{
if (!txt || !*txt) return AcDbObjectId::kNull;
const AcGePoint2d q = apply(p);
AcDbText *pEnt = new AcDbText(AcGePoint3d(q.x, q.y, 0.0), txt, AcDbObjectId::kNull, h, rot);
const double hh = h * m_scale; // 文字高度也要随缩放变换
AcDbText *pEnt = new AcDbText(AcGePoint3d(q.x, q.y, 0.0), txt, AcDbObjectId::kNull, hh, rot);
if (hMode == 1) pEnt->setHorizontalMode(AcDb::kTextCenter);
else if (hMode == 2) pEnt->setHorizontalMode(AcDb::kTextRight);
pEnt->setVerticalMode(AcDb::kTextVertMid);