summaryrefslogtreecommitdiff
path: root/svx/source/tbxctrls/Palette.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/tbxctrls/Palette.cxx')
-rw-r--r--svx/source/tbxctrls/Palette.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/tbxctrls/Palette.cxx b/svx/source/tbxctrls/Palette.cxx
index d5e2dd9b9505..9a5c76a7e610 100644
--- a/svx/source/tbxctrls/Palette.cxx
+++ b/svx/source/tbxctrls/Palette.cxx
@@ -78,7 +78,7 @@ void PaletteASE::LoadPalette()
// Verify magic first 4 characters
sal_Char cMagic[5] = {0};
- if ((aFile.Read(cMagic, 4) != 4) || (strncmp(cMagic, "ASEF", 4) != 0))
+ if ((aFile.ReadBytes(cMagic, 4) != 4) || (strncmp(cMagic, "ASEF", 4) != 0))
{
mbValidPalette = false;
return;
@@ -120,7 +120,7 @@ void PaletteASE::LoadPalette()
}
sal_Char cColorModel[5] = {0};
- aFile.Read(cColorModel, 4);
+ aFile.ReadBytes(cColorModel, 4);
OString aColorModel(cColorModel);
// r, g, and b are floats ranging from 0 to 1
float r = 0, g = 0, b = 0;