summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graemeg@gmail.com>2013-04-04 23:44:37 +0100
committerGraeme Geldenhuys <graemeg@gmail.com>2013-04-04 23:44:37 +0100
commit1c6b5d4b9f14adc892492b0201eafb2fb09b88ef (patch)
treead4a595bf1237852360f16623e615d0b962fd55d /src
parent44b9bbf5c3519c79c584f448b0223e1c51855443 (diff)
downloadfpGUI-1c6b5d4b9f14adc892492b0201eafb2fb09b88ef.tar.xz
bmp code now raises an exception for a unknown BMP format.
Before it would have done a writeln() which would go unnoticed under Linux, and cause an AV under Windows GUI apps.
Diffstat (limited to 'src')
-rw-r--r--src/corelib/fpg_imgfmt_bmp.pas2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/fpg_imgfmt_bmp.pas b/src/corelib/fpg_imgfmt_bmp.pas
index 353b3216..5add70ba 100644
--- a/src/corelib/fpg_imgfmt_bmp.pas
+++ b/src/corelib/fpg_imgfmt_bmp.pas
@@ -314,7 +314,7 @@ begin
until linecnt >= img.Height;
end;
else
- writeln('Unsupported BMP format!');
+ raise Exception.Create('Unsupported BMP format!');
end;
if ppal <> nil then