summaryrefslogtreecommitdiff
path: root/noncore
authorcniehaus <cniehaus>2003-01-03 16:07:22 (UTC)
committer cniehaus <cniehaus>2003-01-03 16:07:22 (UTC)
commit83acc7920179fba4b278bad9ba383ca8564b7278 (patch) (unidiff)
treeedaf0e609a000cdb799981354cdb2bae13b6cc2a /noncore
parentdfd02afc1f3b3f0da39194d2224f56c5b7c1b12e (diff)
downloadopie-83acc7920179fba4b278bad9ba383ca8564b7278.zip
opie-83acc7920179fba4b278bad9ba383ca8564b7278.tar.gz
opie-83acc7920179fba4b278bad9ba383ca8564b7278.tar.bz2
fixing "content-bug"
Diffstat (limited to 'noncore') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/oxygen/psewidget.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/noncore/apps/oxygen/psewidget.cpp b/noncore/apps/oxygen/psewidget.cpp
index 4f990b0..be5185b 100644
--- a/noncore/apps/oxygen/psewidget.cpp
+++ b/noncore/apps/oxygen/psewidget.cpp
@@ -1,17 +1,17 @@
1/*************************************************************************** 1/***************************************************************************
2 application: : Oxygen 2 application: : Oxygen
3 3
4 begin : September 2002 4 begin : September 2002
5 copyright : ( C ) 2002 by Carsten Niehaus 5 copyright : ( C ) 2002, 2003 by Carsten Niehaus
6 email : cniehaus@handhelds.org 6 email : cniehaus@handhelds.org
7 **************************************************************************/ 7 **************************************************************************/
8 8
9/*************************************************************************** 9/***************************************************************************
10 * * 10 * *
11 * This program is free software; you can redistribute it and/or modify * 11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by * 12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or * 13 * the Free Software Foundation; either version 2 of the License, or *
14 * ( at your option ) any later version. * 14 * ( at your option ) any later version. *
15 * * 15 * *
16 **************************************************************************/ 16 **************************************************************************/
17 17
@@ -142,25 +142,25 @@ void PSEWidget::position(int n, int& h, int& v)
142 h=0; v=80; 142 h=0; v=80;
143 } 143 }
144 144
145 145
146 //Magnesium 146 //Magnesium
147 if (n == 12) 147 if (n == 12)
148 { 148 {
149 h=40; v=80; 149 h=40; v=80;
150 } 150 }
151 151
152 152
153 //Potassium --> Uuo without La and Ac 153 //Potassium --> Uuo without La and Ac
154 if ((n >= 19 && n <= 56) || (n >= 72 && n <= 88) || n >= 104) 154 if ((n >= 19 && n <= 57) || (n >= 72 && n <= 89) || n >= 104)
155 for (int i = 1; i <= 18; i++) 155 for (int i = 1; i <= 18; i++)
156 { 156 {
157 int f = n; 157 int f = n;
158 if (n > 18) 158 if (n > 18)
159 f = n-18; 159 f = n-18;
160 if (n > 36) 160 if (n > 36)
161 f = n-36; 161 f = n-36;
162 if (n > 54) 162 if (n > 54)
163 f = n-54; 163 f = n-54;
164 if (n > 71) 164 if (n > 71)
165 f = n-68; 165 f = n-68;
166 if (n > 86) 166 if (n > 86)
@@ -172,27 +172,27 @@ void PSEWidget::position(int n, int& h, int& v)
172 172
173 v = 120; 173 v = 120;
174 if (n >= 37) 174 if (n >= 37)
175 v=160; 175 v=160;
176 if (n >= 55) 176 if (n >= 55)
177 v=200; 177 v=200;
178 if (n >= 87) 178 if (n >= 87)
179 v=240; 179 v=240;
180 } 180 }
181 181
182 182
183 //Lanthanum --> Lutetium and Actinum --> Lawrencium 183 //Lanthanum --> Lutetium and Actinum --> Lawrencium
184 if ((n >= 57 && n <= 71) || (n >= 89 && n <= 103)) 184 if ((n >= 58 && n <= 71) || (n >= 90 && n <= 103))
185 for (int i = 1; i <= 14; i++) 185 for (int i = 1; i <= 14; i++)
186 { 186 {
187 int f = n; 187 int f = n;
188 if (n > 56) 188 if (n > 57)
189 f = n-55; 189 f = n-55;
190 if (n > 88) 190 if (n > 88)
191 f = n-87; 191 f = n-87;
192 h=(f*40); 192 h=(f*40);
193 v = 290; 193 v = 290;
194 if (n >= 89) 194 if (n >= 90)
195 v=330; 195 v=330;
196 } 196 }
197 v += 10; 197 v += 10;
198} 198}