Skip to content

Commit

Permalink
Fixing breath placement
Browse files Browse the repository at this point in the history
  • Loading branch information
lpugin committed Jun 14, 2017
1 parent 783313b commit afe0b3f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/vrv/vrvdef.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace vrv {

#define VERSION_MAJOR 1
#define VERSION_MINOR 1
#define VERSION_REVISION 0
#define VERSION_REVISION 1
// Adds "-dev" in the version number - should be set to false for releases
#define VERSION_DEV false

Expand Down
9 changes: 8 additions & 1 deletion src/floatingobject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

//----------------------------------------------------------------------------

#include "breath.h"
#include "dir.h"
#include "doc.h"
#include "dynam.h"
Expand Down Expand Up @@ -110,7 +111,13 @@ FloatingPositioner::FloatingPositioner(FloatingObject *object) : BoundingBox()
assert(object);

m_object = object;
if (object->Is(DIR)) {
if (object->Is(BREATH)) {
Breath *breath = dynamic_cast<Breath *>(object);
assert(breath);
// breath above by default
m_place = breath->HasPlace() ? breath->GetPlace() : STAFFREL_above;
}
else if (object->Is(DIR)) {
Dir *dir = dynamic_cast<Dir *>(object);
assert(dir);
// dir below by default
Expand Down

0 comments on commit afe0b3f

Please sign in to comment.