I've got a ulcer on my leg so would I be in bad shape after a 4hr plane flight?

Not sure. To some extent, it depends on the cause of your ulcer. If your ulcer is because of varicose veins, then i hope it is begin treated with compression. If you have effective compression that you are using on the flight, you should probably be ok. If your ulcer is for other reasons, things could be different.