mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-15 22:02:51 -06:00
*CtrlCore: fixed a problem in GetPropertyInts
git-svn-id: svn://ultimatepp.org/upp/trunk@4045 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
354e2271cc
commit
4eea371e4f
2 changed files with 3 additions and 3 deletions
|
|
@ -124,8 +124,8 @@ Vector<int> GetPropertyInts(Window w, Atom property, Atom rtype)
|
|||
Vector<int> result;
|
||||
String p = GetProperty(w, property, rtype);
|
||||
const long int *ptr = (const long int *)~p;
|
||||
const long int *lim = ptr + p.GetLength() / 4;
|
||||
result.Reserve(p.GetLength() / 4);
|
||||
const long int *lim = ptr + p.GetLength() / sizeof(long int);
|
||||
result.Reserve(p.GetLength() / sizeof(long int));
|
||||
while(ptr < lim)
|
||||
result.Add(*ptr++);
|
||||
return result;
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
#include "Draw/init"
|
||||
#include "plugin\bmp/init"
|
||||
#include "RichText/init"
|
||||
#define BLITZ_INDEX__ F80D5AB9C140C53FA4A54CDF51E828146
|
||||
#define BLITZ_INDEX__ FB8F4A982C72471DC245DDFAE3ACBB156
|
||||
#include "CtrlCore.icpp"
|
||||
#undef BLITZ_INDEX__
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue