| 94 | } |
| 95 | |
| 96 | LayerDataBase* getCurrentLayerData(TOPPViewBase* tv) |
| 97 | { |
| 98 | PlotCanvas* cc = tv->getActiveCanvas(); |
| 99 | if (cc == nullptr) |
| 100 | { |
| 101 | return nullptr; |
| 102 | } |
| 103 | if (cc->getCurrentLayerIndex() == Size(-1)) |
| 104 | { |
| 105 | return nullptr; |
| 106 | } |
| 107 | return &(cc->getCurrentLayer()); |
| 108 | } |
| 109 | |
| 110 | // called externally |
| 111 | // and internally by signals |
no test coverage detected