Skip to content

Commit

Permalink
fix #139486: grace notes and noteheads brackets are badly drawn in pa…
Browse files Browse the repository at this point in the history
…lettes
  • Loading branch information
wschweer committed Nov 2, 2016
1 parent 42b14fa commit 87837d9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions libmscore/icon.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class Icon : public Element {
const QByteArray& action() const { return _action; }
QIcon icon() const { return _icon; }
void setExtent(int v) { _extent = v; }
int extent() const { return _extent; }
virtual void write(Xml&) const override;
virtual void read(XmlReader&) override;
virtual void draw(QPainter*) const override;
Expand Down
1 change: 0 additions & 1 deletion libmscore/joinMeasure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ namespace Ms {
void Score::cmdJoinMeasure(Measure* m1, Measure* m2)
{
startCmd();
printf("==== cmdJoinMeasure\n");

deselectAll();

Expand Down
1 change: 0 additions & 1 deletion libmscore/splitMeasure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ namespace Ms {

void Score::cmdSplitMeasure(ChordRest* cr)
{
printf("splitMeasure\n");
startCmd();
splitMeasure(cr->segment());
endCmd();
Expand Down
6 changes: 4 additions & 2 deletions mscore/palette.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -911,8 +911,10 @@ void Palette::paintEvent(QPaintEvent* /*event*/)
int column = idx % columns();

qreal cellMag = cc->mag * mag;
if (el->isIcon())
toIcon(el)->setExtent(((hhgrid < vgrid ? hhgrid : vgrid) - 4) / cellMag);
if (el->isIcon()) {
toIcon(el)->setExtent((hhgrid < vgrid ? hhgrid : vgrid) - 4);
cellMag = 1.0;
}
el->layout();

if (drawStaff) {
Expand Down

0 comments on commit 87837d9

Please sign in to comment.