samterm: fix crash on scroll when there is no layer (thanks BurnZeZ)

This commit is contained in:
cinap_lenrek 2013-06-26 02:28:16 +02:00
parent b3e120ecb6
commit 3b1e582fc6

View file

@ -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);