Minor fixes and arrow point fix

This commit is contained in:
lupoDharkael
2017-05-24 13:11:28 +02:00
parent 78a3623963
commit 5b65583e49
7 changed files with 50 additions and 29 deletions

View File

@@ -21,15 +21,14 @@
// CaptureModification is a single modification in the screenshot drawn
// by the user.
CaptureModification::CaptureModification(
const Button::Type t, QPoint p, const QColor c) : m_type(t) {
CaptureModification::CaptureModification(const Button::Type t, const QPoint p,
const QColor c) : m_color(c), m_type(t) {
m_coords.append(p);
if (m_type == Button::Type::circle || m_type == Button::Type::rectangle
|| m_type == Button::Type::arrow || m_type == Button::Type::line ||
m_type == Button::Type::marker) {
m_coords.append(p);
}
m_color = c;
}
CaptureModification::CaptureModification() {