samterm: fix crash on scroll when there is no layer (thanks BurnZeZ)
This commit is contained in:
parent
b3e120ecb6
commit
3b1e582fc6
1 changed files with 3 additions and 0 deletions
|
@ -310,6 +310,9 @@ scrorigin(Flayer *l, int but, long p0)
|
|||
{
|
||||
Text *t=(Text *)l->user1;
|
||||
|
||||
if(t->tag == Untagged)
|
||||
return;
|
||||
|
||||
switch(but){
|
||||
case 1:
|
||||
outTsll(Torigin, t->tag, l->origin, p0);
|
||||
|
|
Loading…
Reference in a new issue