Fix various typos

Found via codespell.
This commit is contained in:
luzpaz
2024-10-16 14:36:02 +00:00
committed by Max Wilfinger
parent 4d4c4fc708
commit a633be7342
17 changed files with 23 additions and 23 deletions

View File

@@ -427,7 +427,7 @@ void CosmeticExtension::removeCosmeticEdge(const std::string& delTag)
/// remove the cosmetic edges with the given tags from the list property
void CosmeticExtension::removeCosmeticEdge(const std::vector<std::string>& delTags)
{
// Base::Console().Message("DVP::removeCE(%d tages)\n", delTags.size());
// Base::Console().Message("DVP::removeCE(%d tags)\n", delTags.size());
std::vector<CosmeticEdge*> cEdges = CosmeticEdges.getValues();
for (auto& t: delTags) {
removeCosmeticEdge(t);

View File

@@ -653,10 +653,10 @@ void DrawView::setScaleAttribute()
}
}
//! due to changes made for the "intelligent" view creation tool, testing for a view being an
//! Due to changes made for the "intelligent" view creation tool, testing for a view being an
//! instance of DrawProjGroupItem is no longer reliable, as views not in a group are sometimes
//! created as DrawProjGroupItem without belonging to a group. We now need to test for the existance
//! of the parent DrawProjGroup
//! created as DrawProjGroupItem without belonging to a group. We now need to test for the
//! existence of the parent DrawProjGroup
bool DrawView::isProjGroupItem(DrawViewPart* item)
{
auto dpgi = dynamic_cast<DrawProjGroupItem*>(item);

View File

@@ -362,10 +362,10 @@ void QGIDatumLabel::updateFrameRect() {
int paddingRight = fontSize * 0.3;
int paddingBottom = fontSize * 0.125;
// Why top and bottom padding different?
// Because the m_dimText bouding box isn't relative to X height :(
// Because the m_dimText bounding box isn't relative to X height :(
// And we want padding to be relative to X height
// TODO: make QGCustomLabel::boundingBoxXHeight
m_frame->setRect(m_textItems->childrenBoundingRect().adjusted(-paddingLeft, -paddingTop, paddingRight, paddingBottom)); // Update bouding rect
m_frame->setRect(m_textItems->childrenBoundingRect().adjusted(-paddingLeft, -paddingTop, paddingRight, paddingBottom)); // Update bounding rect
}
void QGIDatumLabel::setLineWidth(double lineWidth)