Ticket #492: controlrect_always.patch

File controlrect_always.patch, 871 bytes (added by lars.luthman@…, 12 years ago)
  • flowcanvas/src/Module.cpp

    diff --git a/flowcanvas/src/Module.cpp b/flowcanvas/src/Module.cpp
    index db814b6..85b462d 100644
    a b Module::resize_vert() 
    720720    static const double PAD = 2.0;
    721721    for (PortVector::iterator pi = _ports.begin(); pi != _ports.end(); ++pi) {
    722722        const boost::shared_ptr<Port> p = (*pi);
    723         p->hide_control();
    724723        p->set_width(MODULE_EMPTY_PORT_BREADTH);
    725724        p->set_height(MODULE_EMPTY_PORT_DEPTH);
    726725        if (p->is_input()) {
  • flowcanvas/src/Port.cpp

    diff --git a/flowcanvas/src/Port.cpp b/flowcanvas/src/Port.cpp
    index 7f6c396..c7e96ba 100644
    a b Port::set_height(double h) 
    419419{
    420420    if (_rect)
    421421        _rect->property_y2() = _rect->property_y1() + h;
     422    if (_control_rect)
     423        _control_rect->property_y2() = _control_rect->property_y1() + h - 1;
    422424    _height = h;
    423425}
    424426