Prevent GraphStart change on empty plot
This commit is contained in:
1 parent
506207c5ad
commit
085aa819dc
1 file changed
+1
@@ -816,6 +816,7 @@ void Plot::Zoom(double factor, uint32_t refX) {
|
||||
}
|
||||
|
||||
void Plot::Move(int offset) {
|
||||
if (GraphTraceLen == 0) return;
|
||||
if (offset > 0) { // Move right
|
||||
if (GraphPixelsPerPoint < 20) {
|
||||
GraphStart += offset;
|
||||
|
||||
Reference in new issue
Block a user