B2017-010: Insert of image with dot in filename failed
This commit is contained in:
parent
3c471efd9f
commit
888b5fba61
@ -98,7 +98,6 @@ namespace Volian.Controls.Library
|
||||
public override void RefreshContent()
|
||||
{
|
||||
IdentifyMe(false);
|
||||
Volian.Base.Library.vlnStackTrace.ShowStackLocal("refreshcontents", 2);
|
||||
RefreshDisplay(false);
|
||||
SetExpandAndExpander(MyItemInfo);
|
||||
}
|
||||
@ -871,7 +870,7 @@ namespace Volian.Controls.Library
|
||||
public static byte[] imageToByteArray(System.Drawing.Image imageIn, string fname)
|
||||
{
|
||||
// get filename's extension to map to imageformat:
|
||||
string ext = fname.Substring(fname.IndexOf(".")+1).ToUpper();
|
||||
string ext = fname.Substring(fname.LastIndexOf(".") + 1).ToUpper();
|
||||
System.Drawing.Imaging.ImageFormat ifmt = System.Drawing.Imaging.ImageFormat.Gif;
|
||||
switch (ext)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user