[sword-svn] r493 - branches/BCB5
chrislit at crosswire.org
chrislit at crosswire.org
Fri Feb 27 21:24:16 MST 2009
Author: chrislit
Date: 2009-02-27 21:24:16 -0700 (Fri, 27 Feb 2009)
New Revision: 493
Modified:
branches/BCB5/RxRichEditX.cpp
Log:
Modified: branches/BCB5/RxRichEditX.cpp
===================================================================
--- branches/BCB5/RxRichEditX.cpp 2009-02-28 04:09:35 UTC (rev 492)
+++ branches/BCB5/RxRichEditX.cpp 2009-02-28 04:24:16 UTC (rev 493)
@@ -1090,7 +1090,7 @@
//filePath=tmp;
TImage *image = new TImage(this);
TJPEGImage *ji = new TJPEGImage();
- TNGImage *pi = new TNGImage();
+ TNGImage *pi = new TNGImage();
Graphics::TBitmap *bitmap = new Graphics::TBitmap();
try {
int len = strlen(filePath);
@@ -1109,7 +1109,7 @@
image->Canvas->Draw(0, 0, ji);
// image->Picture->Bitmap->Assign(ji);
}
- else if ((len > 4) && (!::stricmp(filePath+(len-4), ".png"))) {
+ else if ((len > 4) && (!::stricmp(filePath+(len-4), ".png"))) {
// add .mng/.jng handling above, if desired, both are supported by TNGImage
TFileStream* imageFile;
imageFile = new TFileStream(filePath,fmOpenRead|fmShareCompat);
@@ -1117,15 +1117,15 @@
bitmap->Assign(pi->CopyBitmap());
image->Picture->Assign(bitmap);
delete imageFile;
- image->Canvas->Draw(0, 0, bitmap);
- }
+ image->Canvas->Draw(0, 0, bitmap);
+ }
else image->Picture->LoadFromFile(filePath);
insertRTF(bitmapToRTF(image->Picture->Bitmap));
}
catch (...){}
delete ji;
- delete pi;
+ delete pi;
delete image;
delete bitmap;
}
More information about the sword-cvs
mailing list