diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-04-15 13:08:14 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-04-15 13:08:14 +0300 |
commit | 3b12aa1a811684effa6985bd6323532f4c5b5f7d (patch) | |
tree | 34f1e9d1eb72cc02164c50f116e23515dae8cf93 /src/gmdocument.c | |
parent | 82530dfa14a1ff8714f387dd20033b5912551f7a (diff) |
DocumentWidget: Don't render background tabs
Diffstat (limited to 'src/gmdocument.c')
-rw-r--r-- | src/gmdocument.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gmdocument.c b/src/gmdocument.c index 1e05f438..da369c8c 100644 --- a/src/gmdocument.c +++ b/src/gmdocument.c | |||
@@ -1495,6 +1495,9 @@ void render_GmDocument(const iGmDocument *d, iRangei visRangeY, iGmDocumentRende | |||
1495 | } | 1495 | } |
1496 | 1496 | ||
1497 | static iBool isValidRun_GmDocument_(const iGmDocument *d, const iGmRun *run) { | 1497 | static iBool isValidRun_GmDocument_(const iGmDocument *d, const iGmRun *run) { |
1498 | if (isEmpty_Array(&d->layout)) { | ||
1499 | return iFalse; | ||
1500 | } | ||
1498 | return run >= (const iGmRun *) constAt_Array(&d->layout, 0) && | 1501 | return run >= (const iGmRun *) constAt_Array(&d->layout, 0) && |
1499 | run < (const iGmRun *) constEnd_Array(&d->layout); | 1502 | run < (const iGmRun *) constEnd_Array(&d->layout); |
1500 | } | 1503 | } |