Skip to content

Commit 1713c6e

Browse files
committed
Minor updates
1 parent b9f07b4 commit 1713c6e

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

src/core/map_part.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright 2012, 2013 Thomas Schöps
3-
* Copyright 2012-2021 Kai Pastor
3+
* Copyright 2012-2020, 2025 Kai Pastor
44
*
55
* This file is part of OpenOrienteering.
66
*

src/core/map_part.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright 2012, 2013 Thomas Schöps
3-
* Copyright 2012-2021 Kai Pastor
3+
* Copyright 2012-2020, 2025 Kai Pastor
44
*
55
* This file is part of OpenOrienteering.
66
*
@@ -25,8 +25,8 @@
2525
#include <cstddef>
2626
#include <functional>
2727
#include <memory>
28-
#include <vector>
2928
#include <utility>
29+
#include <vector>
3030

3131
#include <QHash>
3232
#include <QRectF>
@@ -162,12 +162,12 @@ class MapPart
162162
void addObject(Object* object, int pos);
163163

164164
/**
165-
* Deleted the object from the given index.
165+
* Deletes the object from the given index.
166166
*/
167167
void deleteObject(int pos);
168168

169169
/**
170-
* Deleted the object from the given index.
170+
* Deletes the object from the given index.
171171
*
172172
* Returns if the object was found in this part.
173173
*/
@@ -310,4 +310,4 @@ const Object* MapPart::getObject(int i) const
310310

311311
} // namespace OpenOrienteering
312312

313-
#endif
313+
#endif // OPENORIENTEERING_MAP_PART_H

src/gui/map/map_editor.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright 2012, 2013 Thomas Schöps
3-
* Copyright 2012-2021, 2024 Kai Pastor
3+
* Copyright 2012-2021, 2024, 2025 Kai Pastor
44
*
55
* This file is part of OpenOrienteering.
66
*
@@ -2616,7 +2616,7 @@ void MapEditorController::updateObjectDependentActions()
26162616
scale_act->setStatusTip(tr("Scale the selected objects.") + (scale_act->isEnabled() ? QString{} : QString(QLatin1Char(' ') + tr("Select at least one object to activate this tool."))));
26172617
mappart_move_menu->setEnabled(have_selection && have_multiple_parts);
26182618

2619-
// have_rotatable_pattern || have_rotatable_point
2619+
// have_rotatable_pattern || have_rotatable_object
26202620
rotate_pattern_act->setEnabled(have_rotatable_pattern || have_rotatable_object);
26212621
rotate_pattern_act->setStatusTip(tr("Set the direction of area fill patterns or point objects.") + (rotate_pattern_act->isEnabled() ? QString{} : QString(QLatin1Char(' ') + tr("Select an area object with rotatable fill pattern or a rotatable point object to activate this tool."))));
26222622

@@ -2626,7 +2626,7 @@ void MapEditorController::updateObjectDependentActions()
26262626
connect_paths_act->setEnabled(have_line);
26272627
connect_paths_act->setStatusTip(tr("Connect endpoints of paths which are close together.") + (connect_paths_act->isEnabled() ? QString{} : QString(QLatin1Char(' ') + tr("Select at least one line object to activate this tool."))));
26282628

2629-
// have_are || have_line
2629+
// have_area || have_line
26302630
cut_tool_act->setEnabled(have_area || have_line);
26312631
cut_tool_act->setStatusTip(tr("Cut the selected objects into smaller parts.") + (cut_tool_act->isEnabled() ? QString{} : QString(QLatin1Char(' ') + tr("Select at least one line or area object to activate this tool."))));
26322632
convert_to_curves_act->setEnabled(have_area || have_line);

src/gui/map/map_editor.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright 2012, 2013, 2014 Thomas Schöps
3-
* Copyright 2013-2024 Kai Pastor
3+
* Copyright 2013-2025 Kai Pastor
44
*
55
* This file is part of OpenOrienteering.
66
*
@@ -282,7 +282,7 @@ public slots:
282282

283283
/** Undoes the last object edit step. */
284284
void undo();
285-
/** Redoes the last object edit step */
285+
/** Redoes the last object edit step. */
286286
void redo();
287287
/** Cuts the selected object(s). */
288288
void cut();
@@ -388,8 +388,8 @@ public slots:
388388
void updatePasteAvailability();
389389

390390
/**
391-
* Checks the presence of spot colors,
392-
* and to disables overprinting simulation if there are no spot colors.
391+
* Checks the presence of spot colors
392+
* and disables overprinting simulation if there are no spot colors.
393393
*/
394394
void spotColorPresenceChanged(bool has_spot_colors);
395395

@@ -438,7 +438,7 @@ public slots:
438438
void selectByCurrentSymbols();
439439

440440
/**
441-
* Reverses the selected object(s) direcction(s),
441+
* Reverses the selected object(s) direction(s),
442442
* thus switching dash directions for lines.
443443
*/
444444
void switchDashesClicked();
@@ -878,4 +878,4 @@ Symbol* MapEditorController::activeSymbol() const
878878

879879
} // namespace OpenOrienteering
880880

881-
#endif
881+
#endif // OPENORIENTEERING_MAP_EDITOR_H

0 commit comments

Comments
 (0)