Added requested revisions

This commit is contained in:
luz paz 2022-03-15 19:04:38 -04:00 committed by manongjohn
parent dd194c4cc9
commit 1e797d1df7
3 changed files with 6 additions and 6 deletions

View file

@ -1328,7 +1328,7 @@ bool TLevelWriterTzl::resizeIcons(const TDimension &newSize) {
if (!m_chan) return false; if (!m_chan) return false;
assert(m_version >= 13); assert(m_version >= 13);
// make a copy of m_path and then use it for the resizeIcons() // make a copy of m_path to be able to use it for resizeIcons()
fclose(m_chan); fclose(m_chan);
m_chan = 0; m_chan = 0;
TFileStatus fs(m_path); TFileStatus fs(m_path);

View file

@ -271,10 +271,10 @@ public:
virtual void update(const TPointD &p1, const TPointD &p2) = 0; virtual void update(const TPointD &p1, const TPointD &p2) = 0;
}; };
// allows to calculate various magnitudes on the polygon of the region, // allows you to calculate various measurements on the polygon
// such as area, center of gravity, perimeter etc... // of the region, such as area, center of mass, perimeter...
// to use it, subclass the virtual class TRegionFeatureFormula // to use it, you must subclass the virtual class by specifying
// specifying the formula of the quantity to calculate. // the formula of the measurement to be calculated.
void DVAPI computeRegionFeature(const TRegion &r, void DVAPI computeRegionFeature(const TRegion &r,
TRegionFeatureFormula &formula); TRegionFeatureFormula &formula);

View file

@ -1612,7 +1612,7 @@ void ToolUtils::drawBalloon(const TPointD &pos, std::string text,
pp.moveTo(x0, y - 8 * devPixRatio); pp.moveTo(x0, y - 8 * devPixRatio);
pp.lineTo(0, y + delta.y); pp.lineTo(0, y + delta.y);
pp.lineTo(x0, y); pp.lineTo(x0, y);
/* rounded borders /* rounded edges
int arcSize = 10; int arcSize = 10;
pp.arcTo(x0,y1-arcSize,arcSize,arcSize,180,90); pp.arcTo(x0,y1-arcSize,arcSize,arcSize,180,90);
pp.arcTo(x1-arcSize,y1-arcSize,arcSize,arcSize,270,90); pp.arcTo(x1-arcSize,y1-arcSize,arcSize,arcSize,270,90);