LCL: fixed UTF8FixBroken for non UTF-8 start bytes

git-svn-id: trunk@14782 -
This commit is contained in:
mattias 2008-04-08 11:05:53 +00:00
parent 5baa3b91de
commit ee9ef21896
2 changed files with 7 additions and 0 deletions

View File

@ -284,6 +284,7 @@ begin
// 'GLX uses VisualInfo records because they uniquely identify
// a (VisualID,screen,depth) tuple.'
vinfo_template.bits_per_rgb:=0;
FillChar(vinfo_template,SizeOf(vinfo_template),0);
vinfo_template.visual := GDK_VISUAL_XVISUAL({$IFDEF LCLGTK}
PGdkVisualPrivate(visual)
@ -739,12 +740,14 @@ begin
// => ignore
exit;
end;
if Size=nil then ;
LCLControl:=TWinControl(Data);
if LCLControl=nil then exit;
//DebugLn(['gtkglarea_size_allocateCB ',DbgSName(LCLControl)]);
gtk_widget_get_size_request(Widget, @GtkWidth, @GtkHeight);
SizeMsg.Msg:=0;
FillChar(SizeMsg,SizeOf(SizeMsg),0);
with SizeMsg do
begin

View File

@ -2476,6 +2476,10 @@ begin
else
p^:=' ';
end
else begin
p^:=' ';
inc(p);
end;
end;
end;